public class Sequence
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
long |
get(Transaction txn,
int delta)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
Database |
getDatabase()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
DatabaseEntry |
getKey()
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
SequenceStats |
getStats(StatsConfig config)
Javadoc for this public method is generated via
the doc templates in the doc_src directory.
|
public void close()
throws DatabaseException
DatabaseExceptionpublic long get(Transaction txn, int delta) throws DatabaseException
This method is synchronized to protect updating of the cached value, since multiple threads may share a single handle. Multiple handles for the same database/key may be used to increase concurrency.
DatabaseExceptionpublic Database getDatabase() throws DatabaseException
DatabaseExceptionpublic DatabaseEntry getKey() throws DatabaseException
DatabaseExceptionpublic SequenceStats getStats(StatsConfig config) throws DatabaseException
DatabaseException