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 TypeMethodDescriptionlong
addAndGet
(long increment) Not supported.boolean
compareAndSet
(long expectedValue, long newValue) Not supported.long
get()
Get the minimum sequence value for the group.long
Not supported.void
set
(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:
compareAndSet
in 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:
incrementAndGet
in classSequence
- Returns:
- The value after the increment
-
addAndGet
public long addAndGet(long increment) Not supported.
-