public class ByteBufferRedoLogFileConfig<T> extends Object
ByteBufferRedoLogFileStorage
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE |
static int |
DEFAULT_MAX_BUFFER_SIZE |
static int |
DEFAULT_MAX_SCAN |
static int |
DEFAULT_MAX_STORAGE_CURSORS |
static long |
DEFAULT_SEGMENT_SIZE |
static long |
DEFAULT_SWAP_SIZE |
static long |
UNLIMITED |
Constructor and Description |
---|
ByteBufferRedoLogFileConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxOpenStorageCursors() |
int |
getMaxScanLength() |
long |
getMaxSizePerSegment() |
long |
getMaxSwapSize() |
IPacketStreamSerializer<T> |
getPacketStreamSerializer() |
int |
getWriterBufferSize() |
int |
getWriterMaxBufferSize() |
void |
setMaxOpenStorageCursors(int maxOpenStorageReaders)
Set max allows open storage readers (usually translate to maximum allowed open file
descriptors)
|
void |
setMaxScanLength(int maxScanLength) |
void |
setMaxSizePerSegment(long maxSizePerSegment)
Sets the maximum size of each segment of the storage
|
void |
setMaxSwapSize(long maxSwapSize)
Sets the maximum size in bytes of the entire storage, -1 states unlimited
|
void |
setPacketStreamSerializer(IPacketStreamSerializer<T> packetStreamSerializer) |
void |
setWriterBufferSize(int writerBufferSize)
Sets the write buffer init size in bytes
|
void |
setWriterMaxBufferSize(int writerMaxBufferSize)
Sets the maximum size if the write buffer in bytes
|
public static final long UNLIMITED
public static final int DEFAULT_BUFFER_SIZE
public static final int DEFAULT_MAX_BUFFER_SIZE
public static final long DEFAULT_SWAP_SIZE
public static final long DEFAULT_SEGMENT_SIZE
public static final int DEFAULT_MAX_SCAN
public static final int DEFAULT_MAX_STORAGE_CURSORS
public int getWriterBufferSize()
public int getWriterMaxBufferSize()
public void setWriterBufferSize(int writerBufferSize)
public void setWriterMaxBufferSize(int writerMaxBufferSize)
public void setMaxSwapSize(long maxSwapSize)
public long getMaxSwapSize()
public void setMaxSizePerSegment(long maxSizePerSegment)
maxSizePerSegment
- maximum size in bytes, must be a positive non zero numberpublic long getMaxSizePerSegment()
public void setMaxScanLength(int maxScanLength)
public int getMaxScanLength()
public void setMaxOpenStorageCursors(int maxOpenStorageReaders)
public int getMaxOpenStorageCursors()
public IPacketStreamSerializer<T> getPacketStreamSerializer()
public void setPacketStreamSerializer(IPacketStreamSerializer<T> packetStreamSerializer)
Copyright © GigaSpaces.