|
||||||||||
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 ProducerBarrier<T extends AbstractEntry>
Abstraction for claiming AbstractEntry
s in a RingBuffer
while tracking dependent Consumer
s
Method Summary | |
---|---|
void |
commit(SequenceBatch sequenceBatch)
Commit the batch of entries back to the RingBuffer . |
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() |
T |
getEntry(long sequence)
Get the AbstractEntry for a given sequence from the underlying RingBuffer . |
SequenceBatch |
nextEntries(SequenceBatch sequenceBatch)
Claim the next batch of AbstractEntry s in sequence. |
T |
nextEntry()
Claim the next AbstractEntry in sequence for a producer on the RingBuffer |
Method Detail |
---|
T nextEntry()
AbstractEntry
in sequence for a producer on the RingBuffer
AbstractEntry
SequenceBatch nextEntries(SequenceBatch sequenceBatch)
AbstractEntry
s in sequence.
sequenceBatch
- to be updated for the batch range.
void commit(T entry)
RingBuffer
to make it visible to Consumer
s
entry
- to be committed back to the RingBuffer
void commit(SequenceBatch sequenceBatch)
RingBuffer
.
sequenceBatch
- to be committed.T getEntry(long sequence)
AbstractEntry
for a given sequence from the underlying RingBuffer
.
sequence
- of the AbstractEntry
to get.
AbstractEntry
for the sequence.long getCursor()
RingBuffer.getCursor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |