com.sleepycat.je
Class Sequence

java.lang.Object
  extended by com.sleepycat.je.Sequence

public class Sequence
extends Object

Javadoc for this public class is generated via the doc templates in the doc_src directory.


Constructor Summary
Sequence(Database db, Transaction txn, DatabaseEntry key, SequenceConfig config)
          Opens a sequence handle, adding the sequence record if appropriate.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sequence

Sequence(Database db,
         Transaction txn,
         DatabaseEntry key,
         SequenceConfig config)
   throws DatabaseException
Opens a sequence handle, adding the sequence record if appropriate.

Throws:
DatabaseException
Method Detail

close

public void close()
           throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

get

public long get(Transaction txn,
                int delta)
         throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

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.

Throws:
DatabaseException

getDatabase

public Database getDatabase()
                     throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

getKey

public DatabaseEntry getKey()
                     throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException

getStats

public SequenceStats getStats(StatsConfig config)
                       throws DatabaseException
Javadoc for this public method is generated via the doc templates in the doc_src directory.

Throws:
DatabaseException


Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.