Interface IDGenerator
- All Known Subinterfaces:
StorageManager
- All Known Implementing Classes:
AbstractJournalStorageManager,BatchingIDGenerator,JDBCJournalStorageManager,JournalStorageManager,NullStorageManager,SimpleIDGenerator,TimeAndCounterIDGenerator
public interface IDGenerator
Generator of record IDs for the journals.
Notice that while the bindings and messages journals are independent from one another they use the same
IDGenerator instance.
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
-
Method Details
-
generateID
long generateID() -
getCurrentID
long getCurrentID()
-