public abstract class AbstractChronicleQueue extends Object implements ChronicleQueue
MINUS_1_40BIT| Constructor and Description |
|---|
AbstractChronicleQueue() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected abstract long |
cycle() |
abstract long |
epoch() |
long |
firstIndex() |
long |
lastIndex() |
String |
name() |
protected abstract void |
release(WireStore store) |
long |
size() |
protected abstract WireStore |
storeForCycle(long cycle,
long epoch) |
net.openhft.chronicle.wire.WireType |
wireType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitindex, toCycle, toSequenceNumber@NotNull public String name()
name in interface ChronicleQueuepublic abstract long epoch()
@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 Excerpt createExcerpt()
ChronicleQueuecreateExcerpt in interface ChronicleQueuepublic long size()
size in interface ChronicleQueuepublic void clear()
ChronicleQueueclear in interface ChronicleQueuepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long firstIndex()
firstIndex in interface ChronicleQueuepublic long lastIndex()
lastIndex in interface ChronicleQueue@NotNull public net.openhft.chronicle.wire.WireType wireType()
wireType in interface ChronicleQueue@NotNull protected abstract WireStore storeForCycle(long cycle, long epoch)
cycle - the cycleepoch - an epoch offset as the number of number of milliseconds since January 1, 1970,
00:00:00 GMTWireStore associated with this cycleprotected abstract void release(@NotNull
WireStore store)
store - the store to releaseprotected abstract long cycle()
Copyright © 2016. All rights reserved.