|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.config.MapStoreConfig
public class MapStoreConfig
Contains the configuration for a Map Store.
| Nested Class Summary | |
|---|---|
static class |
MapStoreConfig.InitialLoadMode
Initial load module |
| Field Summary | |
|---|---|
static int |
DEFAULT_WRITE_BATCH_SIZE
Default batch size for writing |
static boolean |
DEFAULT_WRITE_COALESCING
Default write coalescing behavior |
static int |
DEFAULT_WRITE_DELAY_SECONDS
Default delay seconds for writing |
| Constructor Summary | |
|---|---|
MapStoreConfig()
|
|
MapStoreConfig(MapStoreConfig config)
|
|
| Method Summary | |
|---|---|
MapStoreConfigReadOnly |
getAsReadOnly()
|
String |
getClassName()
Returns the name of the MapStore implementation class |
String |
getFactoryClassName()
Returns the name of the MapStoreFactory implementation class |
Object |
getFactoryImplementation()
Returns the map store factory implementation object. |
Object |
getImplementation()
Returns the map store implementation object. |
MapStoreConfig.InitialLoadMode |
getInitialLoadMode()
Returns the initial load mode |
Properties |
getProperties()
Returns all the properties |
String |
getProperty(String name)
Returns the given property |
int |
getWriteBatchSize()
Returns the number of operations to be included in each batch processing round. |
int |
getWriteDelaySeconds()
Returns the number of seconds to delay the store writes. |
boolean |
isEnabled()
Returns if this configuration is enabled |
boolean |
isWriteCoalescing()
Returns true if write-coalescing is enabled. |
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. |
void |
setWriteCoalescing(boolean writeCoalescing)
Setting writeCoalescing is meaningful if you are using write-behind MapStore. |
MapStoreConfig |
setWriteDelaySeconds(int writeDelaySeconds)
Sets the number of seconds to delay before writing (storing) the dirty records Default value is 0. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_WRITE_DELAY_SECONDS
public static final int DEFAULT_WRITE_BATCH_SIZE
public static final boolean DEFAULT_WRITE_COALESCING
| Constructor Detail |
|---|
public MapStoreConfig()
public MapStoreConfig(MapStoreConfig config)
| Method Detail |
|---|
public MapStoreConfigReadOnly getAsReadOnly()
public String getClassName()
public MapStoreConfig setClassName(String className)
className - the name to set for the MapStore implementation classpublic String getFactoryClassName()
public MapStoreConfig setFactoryClassName(String factoryClassName)
factoryClassName - the name to set for the MapStoreFactory implementation classpublic int getWriteDelaySeconds()
public MapStoreConfig setWriteDelaySeconds(int writeDelaySeconds)
writeDelaySeconds - the number of seconds to delay before writing the dirty recordspublic int getWriteBatchSize()
public MapStoreConfig setWriteBatchSize(int writeBatchSize)
writeBatchSize - the number of operations to be included in each batch processing round.public boolean isEnabled()
public MapStoreConfig setEnabled(boolean enabled)
enabled - true to enables this configuration, false to disablepublic MapStoreConfig setImplementation(Object implementation)
implementation - the map store implementation object to set
public Object getImplementation()
public MapStoreConfig setFactoryImplementation(Object factoryImplementation)
factoryImplementation - the factory implementation object
public Object getFactoryImplementation()
public MapStoreConfig setProperty(String name,
String value)
public String getProperty(String name)
public Properties getProperties()
public MapStoreConfig setProperties(Properties properties)
properties - the properties to be set
public MapStoreConfig.InitialLoadMode getInitialLoadMode()
public MapStoreConfig setInitialLoadMode(MapStoreConfig.InitialLoadMode initialLoadMode)
initialLoadMode - the initial load mode objectpublic boolean isWriteCoalescing()
true if write-coalescing is enabled.
true if coalescing enabled, false otherwise.setWriteCoalescing(boolean)public void setWriteCoalescing(boolean writeCoalescing)
writeCoalescing is meaningful if you are using write-behind MapStore.
When writeCoalescing is true, only the latest store operation on a key in the writeDelaySeconds
time-window will be reflected to MapStore.
Default value is true.
writeCoalescing - true to enable write-coalescing, false otherwise.GroupProperties.MAP_WRITE_BEHIND_QUEUE_CAPACITYpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||