|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SequenceBarrier
Coordination barrier for tracking the cursor for publishers and sequence of
dependent EventProcessors for processing a data structure
| Method Summary | |
|---|---|
void |
alert()
Alert the EventProcessors of a status change and stay in this status until cleared. |
void |
checkAlert()
Check if an alert has been raised and throw an AlertException if it has. |
void |
clearAlert()
Clear the current alert status. |
long |
getCursor()
Delegate a call to the Sequencer.getCursor() |
boolean |
isAlerted()
The current alert status for the barrier. |
long |
waitFor(long sequence)
Wait for the given sequence to be available for consumption. |
long |
waitFor(long sequence,
long timeout,
java.util.concurrent.TimeUnit units)
Wait for the given sequence to be available for consumption with a time out. |
| Method Detail |
|---|
long waitFor(long sequence)
throws AlertException,
java.lang.InterruptedException
sequence - to wait for
AlertException - if a status change has occurred for the Disruptor
java.lang.InterruptedException - if the thread needs awaking on a condition variable.
long waitFor(long sequence,
long timeout,
java.util.concurrent.TimeUnit units)
throws AlertException,
java.lang.InterruptedException
sequence - to wait fortimeout - valueunits - for the timeout value
AlertException - if a status change has occurred for the Disruptor
java.lang.InterruptedException - if the thread needs awaking on a condition variable.long getCursor()
Sequencer.getCursor()
boolean isAlerted()
void alert()
EventProcessors of a status change and stay in this status until cleared.
void clearAlert()
void checkAlert()
throws AlertException
AlertException if it has.
AlertException - if alert has been raised.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||