Klasse Sequence

java.lang.Object
de.caluga.morphium.Sequence

public class Sequence extends Object
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.

  • Konstruktordetails

    • Sequence

      public Sequence()
  • Methodendetails

    • getLockedAt

      public long getLockedAt()
    • setLockedAt

      public void setLockedAt(long lockedAt)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCurrentValue

      public Long getCurrentValue()
    • setCurrentValue

      public void setCurrentValue(Long currentValue)
    • getLockedBy

      public String getLockedBy()
    • setLockedBy

      public void setLockedBy(String lockedBy)
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object