public abstract class AbstractChronicleQueue extends Object implements ChronicleQueue
| 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 write 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() |
long |
firstAvailableIndex() |
protected abstract long |
firstCycle() |
abstract long |
indexToIndex() |
protected abstract long |
lastCycle() |
long |
lastWrittenIndex() |
String |
name() |
abstract long |
newIndex() |
protected abstract void |
release(WireStore store) |
long |
size() |
protected abstract WireStore |
storeForCycle(long cycle) |
abstract net.openhft.chronicle.wire.Wire |
wire() |
abstract net.openhft.chronicle.wire.WireType |
wireType() |
public String name()
name in interface ChronicleQueuepublic ExcerptAppender createAppender() throws IOException
ChronicleQueuecreateAppender in interface ChronicleQueueIOException - if an IO problem occurspublic ExcerptTailer createTailer() throws IOException
ChronicleQueuecreateTailer in interface ChronicleQueueIOException - if an IO problem occurs@NotNull public Excerpt createExcerpt() throws IOException
ChronicleQueuecreateExcerpt in interface ChronicleQueueIOException - if an IO problem occurspublic long size()
size in interface ChronicleQueuepublic void clear()
ChronicleQueueclear in interface ChronicleQueuepublic long firstAvailableIndex()
firstAvailableIndex in interface ChronicleQueuepublic long lastWrittenIndex()
lastWrittenIndex in interface ChronicleQueuepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected abstract WireStore storeForCycle(long cycle) throws IOException
cycle - IOExceptionprotected abstract void release(WireStore store)
store - protected abstract long cycle()
protected abstract long firstCycle()
protected abstract long lastCycle()
public abstract net.openhft.chronicle.wire.WireType wireType()
public abstract long indexToIndex()
public abstract net.openhft.chronicle.wire.Wire wire()
public abstract long newIndex()
Copyright © 2015. All rights reserved.