Package com.lmax.disruptor
Class FixedSequenceGroup
java.lang.Object
com.lmax.disruptor.LhsPadding
com.lmax.disruptor.Value
com.lmax.disruptor.RhsPadding
com.lmax.disruptor.Sequence
com.lmax.disruptor.FixedSequenceGroup
Hides a group of Sequences behind a single Sequence
-
Field Summary
FieldsFields inherited from class com.lmax.disruptor.Sequence
INITIAL_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongaddAndGet(long increment) Not supported.booleancompareAndSet(long expectedValue, long newValue) Not supported.longget()Get the minimum sequence value for the group.longNot supported.voidset(long value) Not supported.toString()Methods inherited from class com.lmax.disruptor.Sequence
setVolatile
-
Field Details
-
sequences
-
-
Constructor Details
-
FixedSequenceGroup
Constructor- Parameters:
sequences- the list of sequences to be tracked under this sequence group
-
-
Method Details
-
get
public long get()Get the minimum sequence value for the group. -
toString
-
set
public void set(long value) Not supported. -
compareAndSet
public boolean compareAndSet(long expectedValue, long newValue) Not supported.- Overrides:
compareAndSetin classSequence- Parameters:
expectedValue- The expected current value.newValue- The value to update to.- Returns:
- true if the operation succeeds, false otherwise.
-
incrementAndGet
public long incrementAndGet()Not supported.- Overrides:
incrementAndGetin classSequence- Returns:
- The value after the increment
-
addAndGet
public long addAndGet(long increment) Not supported.
-