public static class ChronicleQueueBuilder.IndexedChronicleQueueBuilder extends ChronicleQueueBuilder implements Cloneable
ChronicleQueueBuilder.IndexedChronicleQueueBuilder, ChronicleQueueBuilder.ReplicaChronicleQueueBuilder, ChronicleQueueBuilder.VanillaChronicleQueueBuilder
Modifier and Type | Method and Description |
---|---|
Chronicle |
build() |
int |
cacheLineSize()
The size of the index cache lines (index caches are made up of multiple fixed length
lines, each line contains multiple index entries).
|
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
cacheLineSize(int cacheLineSize)
Sets the size of the index cache lines.
|
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
clone()
Makes IndexedChronicleQueueBuilder cloneable.
|
int |
dataBlockSize()
Returns the size of the data blocks.
|
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
dataBlockSize(int dataBlockSize)
Sets the size to be used for data blocks.
|
net.openhft.lang.io.FileLifecycleListener |
fileLifecycleListener() |
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
fileLifecycleListener(net.openhft.lang.io.FileLifecycleListener fileLifecycleListener) |
int |
indexBlockSize()
Returns the size of the index blocks.
|
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
indexBlockSize(int indexBlockSize)
Sets the size to be used for index blocks.
|
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
large()
A pre-defined ChronicleBuilder for large
Chronicle
instances. |
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
medium()
A pre-defined ChronicleBuilder for medium
Chronicle
instances. |
int |
messageCapacity()
The maximum size of the message that can be stored in the
Chronicle instance to be configured. |
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
messageCapacity(int messageCapacity)
The maximum size a message stored in a
Chronicle instance
can have. |
protected File |
path() |
ChronicleQueueBuilder.ReplicaChronicleQueueBuilder |
sink() |
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
small()
A pre-defined ChronicleBuilder for small
Chronicle
instances. |
ChronicleQueueBuilder.ReplicaChronicleQueueBuilder |
source() |
boolean |
synchronous()
Checks if synchronous mode is enabled or not.
|
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
synchronous(boolean synchronous)
Sets the synchronous mode to be used.
|
boolean |
useCheckedExcerpt() |
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
useCheckedExcerpt(boolean useCheckedExcerpt) |
boolean |
useCompressedObjectSerializer() |
ChronicleQueueBuilder.IndexedChronicleQueueBuilder |
useCompressedObjectSerializer(boolean useCompressedObjectSerializer) |
indexed, indexed, indexed, indexed, remoteAppender, remoteTailer, sink, source, vanilla, vanilla, vanilla, vanilla
protected File path()
public ChronicleQueueBuilder.IndexedChronicleQueueBuilder synchronous(boolean synchronous)
ExcerptCommon.finish()
will force a persistence every time.synchronous
- If synchronous mode should be used or not.public boolean synchronous()
public ChronicleQueueBuilder.IndexedChronicleQueueBuilder useCheckedExcerpt(boolean useCheckedExcerpt)
useCheckedExcerpt
- public boolean useCheckedExcerpt()
public boolean useCompressedObjectSerializer()
public ChronicleQueueBuilder.IndexedChronicleQueueBuilder useCompressedObjectSerializer(boolean useCompressedObjectSerializer)
public ChronicleQueueBuilder.IndexedChronicleQueueBuilder cacheLineSize(int cacheLineSize)
cacheLineSize
- the size of the cache lines making up index filespublic int cacheLineSize()
public ChronicleQueueBuilder.IndexedChronicleQueueBuilder dataBlockSize(int dataBlockSize)
dataBlockSize
- the size of the data blockspublic int dataBlockSize()
public ChronicleQueueBuilder.IndexedChronicleQueueBuilder indexBlockSize(int indexBlockSize)
indexBlockSize
- the size of the index blockspublic int indexBlockSize()
public ChronicleQueueBuilder.IndexedChronicleQueueBuilder messageCapacity(int messageCapacity)
Chronicle
instance
can have. Defaults to 128K. Is limited by the data block size, can't be
bigger than half of the data block size.messageCapacity
- the maximum message size that can be storedpublic int messageCapacity()
Chronicle
instance to be configured. Defaults to 128K.
Can't be bigger than half of the data block size.public ChronicleQueueBuilder.IndexedChronicleQueueBuilder small()
Chronicle
instances.
It has the following params: public ChronicleQueueBuilder.IndexedChronicleQueueBuilder medium()
Chronicle
instances.
It has the following params: public ChronicleQueueBuilder.IndexedChronicleQueueBuilder large()
Chronicle
instances.
It has the following params: public ChronicleQueueBuilder.ReplicaChronicleQueueBuilder sink()
public ChronicleQueueBuilder.ReplicaChronicleQueueBuilder source()
public ChronicleQueueBuilder.IndexedChronicleQueueBuilder fileLifecycleListener(net.openhft.lang.io.FileLifecycleListener fileLifecycleListener)
public net.openhft.lang.io.FileLifecycleListener fileLifecycleListener()
public Chronicle build() throws IOException
build
in class ChronicleQueueBuilder
IOException
@NotNull public ChronicleQueueBuilder.IndexedChronicleQueueBuilder clone()
clone
in class ChronicleQueueBuilder
Copyright © 2017. All rights reserved.