|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.patterns.order.Sequence
public class Sequence
| Constructor Summary | |
|---|---|
Sequence()
|
|
Sequence(long wrapAround)
|
|
| Method Summary | |
|---|---|
void |
assertSameParent(Sequence sequence)
|
Sequence |
clone()
|
java.util.concurrent.atomic.AtomicLong |
getCurrentValue()
Returns the currentValue value. |
long |
getGeneration()
Returns the generation value. |
java.util.UUID |
getIdentity()
Returns the identity value. |
java.util.concurrent.atomic.AtomicLong |
getLastValue()
Returns the lastValue value. |
long |
getWrapAround()
Returns the wrapAround value. |
boolean |
isAfter(Sequence sequence)
|
boolean |
isBefore(Sequence sequence)
|
boolean |
isBeforeOrEqual(Sequence sequence)
|
boolean |
isEqual(Sequence sequence)
|
boolean |
isWrapped()
Returns the isWrapped value. |
void |
next()
|
void |
reset()
|
void |
setCurrentValue(java.util.concurrent.atomic.AtomicLong currentValue)
Sets the currentValue value. |
void |
setGeneration(long generation)
Sets the generation value. |
void |
setIdentity(java.util.UUID identity)
Sets the identity value. |
void |
setLastValue(java.util.concurrent.atomic.AtomicLong lastValue)
Sets the lastValue value. |
void |
setWrapAround(long wrapAround)
Sets the wrapAround value. |
void |
setWrapped(boolean isWrapped)
Sets the isWrapped value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Sequence(long wrapAround)
public Sequence()
| Method Detail |
|---|
public boolean isBefore(Sequence sequence)
throws SequenceException
SequenceException
public boolean isBeforeOrEqual(Sequence sequence)
throws SequenceException
SequenceException
public boolean isAfter(Sequence sequence)
throws SequenceException
SequenceException
public boolean isEqual(Sequence sequence)
throws SequenceException
SequenceExceptionpublic void next()
public Sequence clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic long getWrapAround()
public void setWrapAround(long wrapAround)
wrapAround - The wrapAround to set.public long getGeneration()
public void setGeneration(long generation)
generation - The generation to set.public boolean isWrapped()
public void setWrapped(boolean isWrapped)
isWrapped - The isWrapped to set.public java.util.UUID getIdentity()
public void setIdentity(java.util.UUID identity)
identity - The identity to set.public java.util.concurrent.atomic.AtomicLong getCurrentValue()
public void setCurrentValue(java.util.concurrent.atomic.AtomicLong currentValue)
currentValue - The currentValue to set.public java.util.concurrent.atomic.AtomicLong getLastValue()
public void setLastValue(java.util.concurrent.atomic.AtomicLong lastValue)
lastValue - The lastValue to set.
public void assertSameParent(Sequence sequence)
throws SequenceException
SequenceExceptionpublic void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||