Package de.caluga.morphium
Class Sequence
java.lang.Object
de.caluga.morphium.Sequence
User: Stephan Bösebeck
Date: 24.07.12
Time: 21:49
Sequence: Used by SequenceGenerator to crate unique sequential numbers. Locking and such is done by the Generator
ReadPreference: MasterOnly and SavetyLevel=WAIT_FOR_SLAVE means: read only from master, but wait for one slave to
commit the write. This is best compromise between performance and security (as usually you'd call nextValue on the
generator, not getcurrentvalue all the time.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetName()voidsetCurrentValue(Long currentValue) voidsetLockedAt(long lockedAt) voidsetLockedBy(String lockedBy) voidtoString()