Class ByteBufferRedoLogFileConfig<T>
java.lang.Object
com.gigaspaces.internal.server.space.redolog.storage.bytebuffer.ByteBufferRedoLogFileConfig<T>
A configuration object for
ByteBufferRedoLogFileStorage- Since:
- 7.1
- Author:
- eitany
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final longstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintlonglongintintvoidsetMaxOpenStorageCursors(int maxOpenStorageReaders) Set max allows open storage readers (usually translate to maximum allowed open file descriptors)voidsetMaxScanLength(int maxScanLength) voidsetMaxSizePerSegment(long maxSizePerSegment) Sets the maximum size of each segment of the storagevoidsetMaxSwapSize(long maxSwapSize) Sets the maximum size in bytes of the entire storage, -1 states unlimitedvoidsetPacketStreamSerializer(IPacketStreamSerializer<T> packetStreamSerializer) voidsetWriterBufferSize(int writerBufferSize) Sets the write buffer init size in bytesvoidsetWriterMaxBufferSize(int writerMaxBufferSize) Sets the maximum size if the write buffer in bytes
-
Field Details
-
UNLIMITED
public static final long UNLIMITED- See Also:
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE- See Also:
-
DEFAULT_MAX_BUFFER_SIZE
public static final int DEFAULT_MAX_BUFFER_SIZE- See Also:
-
DEFAULT_SWAP_SIZE
public static final long DEFAULT_SWAP_SIZE- See Also:
-
DEFAULT_SEGMENT_SIZE
public static final long DEFAULT_SEGMENT_SIZE- See Also:
-
DEFAULT_MAX_SCAN
public static final int DEFAULT_MAX_SCAN- See Also:
-
DEFAULT_MAX_STORAGE_CURSORS
public static final int DEFAULT_MAX_STORAGE_CURSORS- See Also:
-
-
Constructor Details
-
ByteBufferRedoLogFileConfig
public ByteBufferRedoLogFileConfig()
-
-
Method Details
-
getWriterBufferSize
public int getWriterBufferSize() -
getWriterMaxBufferSize
public int getWriterMaxBufferSize() -
setWriterBufferSize
public void setWriterBufferSize(int writerBufferSize) Sets the write buffer init size in bytes -
setWriterMaxBufferSize
public void setWriterMaxBufferSize(int writerMaxBufferSize) Sets the maximum size if the write buffer in bytes -
setMaxSwapSize
public void setMaxSwapSize(long maxSwapSize) Sets the maximum size in bytes of the entire storage, -1 states unlimited -
getMaxSwapSize
public long getMaxSwapSize() -
setMaxSizePerSegment
public void setMaxSizePerSegment(long maxSizePerSegment) Sets the maximum size of each segment of the storage- Parameters:
maxSizePerSegment- maximum size in bytes, must be a positive non zero number
-
getMaxSizePerSegment
public long getMaxSizePerSegment() -
setMaxScanLength
public void setMaxScanLength(int maxScanLength) -
getMaxScanLength
public int getMaxScanLength() -
setMaxOpenStorageCursors
public void setMaxOpenStorageCursors(int maxOpenStorageReaders) Set max allows open storage readers (usually translate to maximum allowed open file descriptors) -
getMaxOpenStorageCursors
public int getMaxOpenStorageCursors() -
getPacketStreamSerializer
-
setPacketStreamSerializer
-