com.hazelcast.config
public class MapStoreConfigReadOnly extends MapStoreConfig
MapStoreConfig.InitialLoadMode
DEFAULT_WRITE_BATCH_SIZE, DEFAULT_WRITE_COALESCING, DEFAULT_WRITE_DELAY_SECONDS
Constructor and Description |
---|
MapStoreConfigReadOnly(MapStoreConfig config) |
Modifier and Type | Method and Description |
---|---|
MapStoreConfig |
setClassName(String className)
Sets the name for the MapStore implementation class
|
MapStoreConfig |
setEnabled(boolean enabled)
Enables and disables this configuration
|
MapStoreConfig |
setFactoryClassName(String factoryClassName)
Sets the name for the MapStoreFactory implementation class
|
MapStoreConfig |
setFactoryImplementation(Object factoryImplementation)
Sets the map store factory implementation object.
|
MapStoreConfig |
setImplementation(Object implementation)
Sets the map store implementation object
|
MapStoreConfig |
setInitialLoadMode(MapStoreConfig.InitialLoadMode initialLoadMode)
Sets the initial load mode
LAZY: Default load mode where load is async
EAGER: load mode where load is blocked till all partitions are loaded
|
MapStoreConfig |
setProperties(Properties properties)
Sets the properties
|
MapStoreConfig |
setProperty(String name,
String value) |
MapStoreConfig |
setWriteBatchSize(int writeBatchSize)
Sets the number of operations to be included in each batch processing round.
|
MapStoreConfig |
setWriteDelaySeconds(int writeDelaySeconds)
Sets the number of seconds to delay before writing (storing) the dirty records
Default value is 0.
|
getAsReadOnly, getClassName, getFactoryClassName, getFactoryImplementation, getImplementation, getInitialLoadMode, getProperties, getProperty, getWriteBatchSize, getWriteDelaySeconds, isEnabled, isWriteCoalescing, setWriteCoalescing, toString
public MapStoreConfigReadOnly(MapStoreConfig config)
public MapStoreConfig setClassName(String className)
MapStoreConfig
setClassName
in class MapStoreConfig
className
- the name to set for the MapStore implementation classpublic MapStoreConfig setFactoryClassName(String factoryClassName)
MapStoreConfig
setFactoryClassName
in class MapStoreConfig
factoryClassName
- the name to set for the MapStoreFactory implementation classpublic MapStoreConfig setWriteDelaySeconds(int writeDelaySeconds)
MapStoreConfig
setWriteDelaySeconds
in class MapStoreConfig
writeDelaySeconds
- the number of seconds to delay before writing the dirty recordspublic MapStoreConfig setWriteBatchSize(int writeBatchSize)
MapStoreConfig
setWriteBatchSize
in class MapStoreConfig
writeBatchSize
- the number of operations to be included in each batch processing round.public MapStoreConfig setEnabled(boolean enabled)
MapStoreConfig
setEnabled
in class MapStoreConfig
enabled
- true to enables this configuration, false to disablepublic MapStoreConfig setImplementation(Object implementation)
MapStoreConfig
setImplementation
in class MapStoreConfig
implementation
- the map store implementation object to setpublic MapStoreConfig setInitialLoadMode(MapStoreConfig.InitialLoadMode initialLoadMode)
MapStoreConfig
setInitialLoadMode
in class MapStoreConfig
initialLoadMode
- the initial load mode objectpublic MapStoreConfig setFactoryImplementation(Object factoryImplementation)
MapStoreConfig
setFactoryImplementation
in class MapStoreConfig
factoryImplementation
- the factory implementation objectpublic MapStoreConfig setProperty(String name, String value)
setProperty
in class MapStoreConfig
public MapStoreConfig setProperties(Properties properties)
MapStoreConfig
setProperties
in class MapStoreConfig
properties
- the properties to be setCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.