public interface RingBufferReader extends RingBufferReaderStats, net.openhft.chronicle.core.io.Closeable
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN_INDEX |
Modifier and Type | Method and Description |
---|---|
void |
afterRead(long next) |
void |
afterRead(long next,
long payloadStart,
long underlyingIndex) |
long |
beforeRead(Bytes bytes)
the readPosition and readLimit will be adjusted so that the client can read the data
|
BytesStore |
byteStore() |
boolean |
isEmpty() |
boolean |
isStopped() |
boolean |
read(BytesOut bytes)
Convenience method calls both
beforeRead(Bytes) and afterRead(long) |
void |
stop()
stop the reader.
|
void |
toEnd()
Take reader to just past the end of the RB
|
long |
underlyingIndex() |
behind, getAndClearMissedReadCount, getAndClearReadCount
static final long UNKNOWN_INDEX
boolean isEmpty()
boolean isStopped()
void stop()
long beforeRead(Bytes bytes)
bytes
- who's byteStore must be the ring buffer,afterRead(long)
void afterRead(long next)
void afterRead(long next, long payloadStart, long underlyingIndex)
long underlyingIndex()
boolean read(BytesOut bytes)
beforeRead(Bytes)
and afterRead(long)
bytes
- BytesStore byteStore()
void toEnd()
Copyright © 2020. All rights reserved.