public class SingleChronicleQueue extends Object implements RollingChronicleQueue
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<ExcerptAppender> |
excerptAppenderThreadLocal |
static String |
SUFFIX |
Modifier | Constructor and Description |
---|---|
protected |
SingleChronicleQueue(SingleChronicleQueueBuilder builder) |
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.
|
ExcerptTailer |
createTailer() |
int |
cycle() |
String |
dump()
Dump a Queue in YAML format.
|
long |
epoch() |
net.openhft.chronicle.core.threads.EventLoop |
eventLoop() |
int |
firstCycle() |
long |
firstIndex() |
int |
indexCount() |
int |
indexSpacing() |
int |
lastCycle() |
long |
lastIndex() |
protected ExcerptAppender |
newAppender() |
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() |
public static final String SUFFIX
protected final ThreadLocal<ExcerptAppender> excerptAppenderThreadLocal
protected SingleChronicleQueue(@NotNull SingleChronicleQueueBuilder builder)
public void clear()
ChronicleQueue
clear
in interface ChronicleQueue
@NotNull public File path()
path
in interface ChronicleQueue
public String dump()
ChronicleQueue
dump
in interface ChronicleQueue
public int indexCount()
indexCount
in interface ChronicleQueue
public int indexSpacing()
indexSpacing
in interface ChronicleQueue
public long epoch()
epoch
in interface RollingChronicleQueue
@NotNull public RollCycle rollCycle()
rollCycle
in interface RollingChronicleQueue
public boolean buffered()
@Nullable public net.openhft.chronicle.core.threads.EventLoop eventLoop()
protected ExcerptAppender newAppender()
@NotNull public ExcerptAppender createAppender()
ChronicleQueue
createAppender
in interface ChronicleQueue
@NotNull public ExcerptTailer createTailer()
createTailer
in interface ChronicleQueue
@NotNull public final WireStore storeForCycle(long cycle, long epoch)
storeForCycle
in interface RollingChronicleQueue
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()
close
in interface Closeable
close
in interface AutoCloseable
public final void release(@NotNull WireStore store)
release
in interface RollingChronicleQueue
store
- the store
to releasepublic final int cycle()
cycle
in interface RollingChronicleQueue
public long firstIndex()
firstIndex
in interface ChronicleQueue
public int firstCycle()
firstCycle
in interface RollingChronicleQueue
public long lastIndex()
lastIndex
in interface ChronicleQueue
public int lastCycle()
lastCycle
in interface RollingChronicleQueue
public java.util.function.Consumer<net.openhft.chronicle.bytes.BytesRingBufferStats> onRingBufferStats()
public long blockSize()
@NotNull public net.openhft.chronicle.wire.WireType wireType()
wireType
in interface ChronicleQueue
public long bufferCapacity()
Copyright © 2016. All rights reserved.