- 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 long
addAndGet(long increment)
Not supported.boolean
compareAndSet(long expectedValue, long newValue)
Not supported.long
get()
Get the minimum sequence value for the group.long
incrementAndGet()
Not supported.void
set(long value)
Not supported.java.lang.String
toString()
-
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:
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
-
-