Package com.lmax.disruptor
Class FixedSequenceGroup
- 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
-
-
Field Summary
Fields Modifier and Type Field Description protected long
p1
protected long
p10
protected long
p11
protected long
p12
protected long
p13
protected long
p14
protected long
p15
protected long
p2
protected long
p3
protected long
p4
protected long
p5
protected long
p6
protected long
p7
protected long
p9
protected long
value
-
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.String
toString()
-
Methods inherited from class com.lmax.disruptor.Sequence
setVolatile
-
-
-
-
Field Detail
-
p9
protected long p9
-
p10
protected long p10
-
p11
protected long p11
-
p12
protected long p12
-
p13
protected long p13
-
p14
protected long p14
-
p15
protected long p15
-
value
protected volatile long value
-
p1
protected long p1
-
p2
protected long p2
-
p3
protected long p3
-
p4
protected long p4
-
p5
protected long p5
-
p6
protected long p6
-
p7
protected long p7
-
-
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
-
-