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
DatabaseException
public 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.
DatabaseException
public Database getDatabase() throws DatabaseException
DatabaseException
public DatabaseEntry getKey() throws DatabaseException
DatabaseException
public SequenceStats getStats(StatsConfig config) throws DatabaseException
DatabaseException