public class SingleChronicleQueue extends AbstractChronicleQueue implements SingleChronicleQueueFields
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 |
close() |
ExcerptAppender |
createAppender()
An Appender can be used to writeBytes new excerpts sequentially to the upper.
|
ExcerptTailer |
createTailer()
A Tailer can be used to read sequentially from the lower of a given position.
|
protected long |
cycle() |
long |
epoch() |
net.openhft.chronicle.threads.api.EventLoop |
eventLoop() |
long |
firstIndex() |
long |
lastIndex() |
java.util.function.Consumer<net.openhft.chronicle.bytes.BytesRingBufferStats> |
onRingBufferStats() |
File |
path() |
protected void |
release(WireStore store) |
RollCycle |
rollCycle() |
protected WireStore |
storeForCycle(long cycle,
long epoch) |
net.openhft.chronicle.wire.WireType |
wireType() |
clear, createExcerpt, name, size
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
index, toCycle, toSequenceNumber
public static final int TIMEOUT
public static final String MESSAGE
public long epoch()
epoch
in interface SingleChronicleQueueFields
epoch
in class AbstractChronicleQueue
@NotNull public RollCycle rollCycle()
rollCycle
in interface SingleChronicleQueueFields
public boolean buffered()
buffered
in interface SingleChronicleQueueFields
@Nullable public net.openhft.chronicle.threads.api.EventLoop eventLoop()
eventLoop
in interface SingleChronicleQueueFields
@NotNull public ExcerptAppender createAppender()
ChronicleQueue
createAppender
in interface ChronicleQueue
createAppender
in class AbstractChronicleQueue
@NotNull public ExcerptTailer createTailer() throws IOException
ChronicleQueue
createTailer
in interface ChronicleQueue
createTailer
in class AbstractChronicleQueue
IOException
- if an IO problem occurs@NotNull protected final WireStore storeForCycle(long cycle, long epoch)
storeForCycle
in class AbstractChronicleQueue
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
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractChronicleQueue
IOException
protected final void release(@NotNull WireStore store)
release
in class AbstractChronicleQueue
store
- the store
to releaseprotected final long cycle()
cycle
in class AbstractChronicleQueue
public long firstIndex()
firstIndex
in interface ChronicleQueue
firstIndex
in class AbstractChronicleQueue
public long lastIndex()
lastIndex
in interface ChronicleQueue
lastIndex
in class AbstractChronicleQueue
public java.util.function.Consumer<net.openhft.chronicle.bytes.BytesRingBufferStats> onRingBufferStats()
onRingBufferStats
in interface SingleChronicleQueueFields
@NotNull public File path()
path
in interface SingleChronicleQueueFields
public long blockSize()
blockSize
in interface SingleChronicleQueueFields
@NotNull public net.openhft.chronicle.wire.WireType wireType()
wireType
in interface ChronicleQueue
wireType
in interface SingleChronicleQueueFields
wireType
in class AbstractChronicleQueue
public long bufferCapacity()
bufferCapacity
in interface SingleChronicleQueueFields
Copyright © 2016. All rights reserved.