- java.lang.Object
-
- com.lmax.disruptor.Sequence
-
- com.lmax.disruptor.FixedSequenceGroup
-
public final class FixedSequenceGroup extends Sequence
Hides a group of Sequences behind a single Sequence
-
-
Constructor Summary
Constructors Constructor Description FixedSequenceGroup(Sequence[] sequences)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddAndGet(long increment)Not supported.booleancompareAndSet(long expectedValue, long newValue)Not supported.longget()Get the minimum sequence value for the group.longincrementAndGet()Not supported.voidset(long value)Not supported.java.lang.StringtoString()-
Methods inherited from class com.lmax.disruptor.Sequence
getAndAdd, setVolatile
-
-
-
-
Constructor Detail
-
FixedSequenceGroup
public FixedSequenceGroup(Sequence[] sequences)
Constructor- Parameters:
sequences- the list of sequences to be tracked under this sequence group
-
-
Method Detail
-
get
public long get()
Get the minimum sequence value for the group.
-
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
-
-