public class SequenceQueue extends IdQueue
| Constructor and Description |
|---|
SequenceQueue(JdbcAdaptor jdbcAdaptor,
DataSourceImpl datasource,
ExecutorService idExecuter,
String sequenceName,
int allocationSize) |
| Modifier and Type | Method and Description |
|---|---|
protected Long |
getNextId()
Returns the next value from the database.
|
clear, contains, drainTo, drainTo, iterator, offer, offer, peek, poll, put, remainingCapacity, remove, size, take, toArray, toArray, toStringadd, addAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAllpublic SequenceQueue(JdbcAdaptor jdbcAdaptor, DataSourceImpl datasource, ExecutorService idExecuter, String sequenceName, int allocationSize)
jdbcAdaptor - the JDBC adaptordatasource - the datasource to useidExecuter - the executor service to submit refill taskssequenceName - the physical name of the sequenceallocationSize - the allocations sizeprotected Long getNextId() throws SQLException
getNextId in class IdQueueSQLExceptionCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.