public class SingleChronicleQueue extends Object implements RollingChronicleQueue
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE |
static int |
TIMEOUT |
MINUS_1_40BIT| Modifier and Type | Method and Description |
|---|---|
long |
blockSize() |
long |
bufferCapacity() |
boolean |
buffered() |
void |
clear()
Remove all the entries in the queue.
|
void |
close() |
ExcerptAppender |
createAppender()
An Appender can be used to writeBytes new excerpts sequentially to the upper.
|
Excerpt |
createExcerpt()
An Excerpt can be used access entries randomly and optionally change them.
|
ExcerptTailer |
createTailer()
A Tailer can be used to read sequentially from the lower of a given position.
|
long |
cycle() |
long |
epoch() |
net.openhft.chronicle.core.threads.EventLoop |
eventLoop() |
long |
firstIndex() |
long |
lastIndex() |
java.util.function.Consumer<net.openhft.chronicle.bytes.BytesRingBufferStats> |
onRingBufferStats() |
File |
path() |
void |
release(WireStore store) |
RollCycle |
rollCycle() |
WireStore |
storeForCycle(long cycle,
long epoch) |
net.openhft.chronicle.wire.WireType |
wireType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitindex, toCycle, toSequenceNumberpublic static final int TIMEOUT
public static final String MESSAGE
public void clear()
ChronicleQueueclear in interface ChronicleQueue@NotNull public File path()
path in interface ChronicleQueuepublic long epoch()
epoch in interface RollingChronicleQueue@NotNull public RollCycle rollCycle()
public boolean buffered()
@Nullable public net.openhft.chronicle.core.threads.EventLoop eventLoop()
@NotNull public Excerpt createExcerpt()
ChronicleQueuecreateExcerpt in interface ChronicleQueue@NotNull public ExcerptAppender createAppender()
ChronicleQueuecreateAppender in interface ChronicleQueue@NotNull public ExcerptTailer createTailer() throws IOException
ChronicleQueuecreateTailer in interface ChronicleQueueIOException - if an IO problem occurs@NotNull public final WireStore storeForCycle(long cycle, long epoch)
storeForCycle in interface RollingChronicleQueuecycle - the cycleepoch - an epoch offset as the number of number of milliseconds since January 1, 1970,
00:00:00 GMTWireStore associated with this cyclepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic final void release(@NotNull
WireStore store)
release in interface RollingChronicleQueuestore - the store to releasepublic final long cycle()
cycle in interface RollingChronicleQueuepublic long firstIndex()
firstIndex in interface ChronicleQueuepublic long lastIndex()
lastIndex in interface ChronicleQueuepublic java.util.function.Consumer<net.openhft.chronicle.bytes.BytesRingBufferStats> onRingBufferStats()
public long blockSize()
@NotNull public net.openhft.chronicle.wire.WireType wireType()
wireType in interface ChronicleQueuepublic long bufferCapacity()
Copyright © 2016. All rights reserved.