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, wait
index, toCycle, toSequenceNumber
@NotNull public String name()
name
in interface ChronicleQueue
public abstract long epoch()
@NotNull public ExcerptAppender createAppender()
ChronicleQueue
createAppender
in interface ChronicleQueue
@NotNull public ExcerptTailer createTailer() throws IOException
ChronicleQueue
createTailer
in interface ChronicleQueue
IOException
- if an IO problem occurs@NotNull public Excerpt createExcerpt()
ChronicleQueue
createExcerpt
in interface ChronicleQueue
public long size()
size
in interface ChronicleQueue
public void clear()
ChronicleQueue
clear
in interface ChronicleQueue
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long firstIndex()
firstIndex
in interface ChronicleQueue
public 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 cycle
protected abstract void release(@NotNull WireStore store)
store
- the store
to releaseprotected abstract long cycle()
Copyright © 2016. All rights reserved.