|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- AbstractEntry
implementation stored in the RingBuffer
public interface ForceFillProducerBarrier<T extends AbstractEntry>
Abstraction for claiming AbstractEntry
s in a RingBuffer
while tracking dependent Consumer
s.
This barrier can be used to pre-fill a RingBuffer
but only when no other producers are active.
Method Summary | |
---|---|
T |
claimEntry(long sequence)
Claim a specific sequence in the RingBuffer when only one producer is involved. |
void |
commit(T entry)
Commit an entry back to the RingBuffer to make it visible to Consumer s. |
long |
getCursor()
Delegate a call to the RingBuffer.getCursor() |
Method Detail |
---|
T claimEntry(long sequence)
RingBuffer
when only one producer is involved.
sequence
- to be claimed.
AbstractEntry
void commit(T entry)
RingBuffer
to make it visible to Consumer
s.
Only use this method when forcing a sequence and you are sure only one producer exists.
This will cause the RingBuffer
to advance the RingBuffer.getCursor()
to this sequence.
entry
- to be committed back to the RingBuffer
long getCursor()
RingBuffer.getCursor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |