메소드 | 설명 | |
---|---|---|
Add ( ISequence sequence ) : void |
Add a Sequence into this aggregate. This should only be used during initialisation. Use SequenceGroup.AddWhileRunning.
|
|
AddAndGet ( long value ) : long | ||
AddWhileRunning ( ICursored cursored, |
Adds a sequence to the sequence group after threads have started to publish to the Disruptor.It will set the sequences to cursor value of the ringBuffer just after adding them. This should prevent any nasty rewind/wrapping effects.
|
|
CompareAndSet ( long expectedSequence, long nextSequence ) : bool | ||
IncrementAndGet ( ) : long | ||
Remove ( ISequence sequence ) : bool |
Remove the first occurrence of the Sequence from this aggregate.
|
|
SetValue ( long value ) : void |
Set all Sequences in the group to a given value.
|
|
SetValueVolatile ( long value ) : void |
Performs a volatile write of this sequence. The intent is a Store/Store barrier between this write and any previous write and a Store/Load barrier between this write and any subsequent volatile read.
|
public Add ( ISequence sequence ) : void | ||
sequence | ISequence | sequence to be added to the aggregate. |
리턴 | void |
public AddWhileRunning ( ICursored cursored, |
||
cursored | ICursored | The data structure that the owner of this sequence group will be pulling it's events from |
sequence | The sequence to add | |
리턴 | void |
public CompareAndSet ( long expectedSequence, long nextSequence ) : bool | ||
expectedSequence | long | |
nextSequence | long | |
리턴 | bool |
public Remove ( ISequence sequence ) : bool | ||
sequence | ISequence | sequence to be removed from this aggregate. |
리턴 | bool |
public SetValue ( long value ) : void | ||
value | long | value to set the group of sequences to. |
리턴 | void |