Interface IDGenerator
-
- All Known Subinterfaces:
StorageManager
- All Known Implementing Classes:
AbstractJournalStorageManager,BatchingIDGenerator,JDBCJournalStorageManager,JournalStorageManager,NullStorageManager,SimpleIDGenerator,TimeAndCounterIDGenerator
public interface IDGeneratorGenerator of record IDs for the journals.Notice that while the bindings and messages journals are independent from one another they use the same
IDGeneratorinstance.The next recordID should be persisted in the journals during a normal shutdown. The lack of such a record indicates a server crash. During server restart, if the journals lack a next-recordID record, we use the last recorded ID plus
MAX_INT.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgenerateID()longgetCurrentID()
-