com.hazelcast.config
Class MapStoreConfigReadOnly

java.lang.Object
  extended by com.hazelcast.config.MapStoreConfig
      extended by com.hazelcast.config.MapStoreConfigReadOnly

public class MapStoreConfigReadOnly
extends MapStoreConfig

Contains the configuration for a Map Store (read-only).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.hazelcast.config.MapStoreConfig
MapStoreConfig.InitialLoadMode
 
Field Summary
 
Fields inherited from class com.hazelcast.config.MapStoreConfig
DEFAULT_WRITE_BATCH_SIZE, DEFAULT_WRITE_COALESCING, DEFAULT_WRITE_DELAY_SECONDS
 
Constructor Summary
MapStoreConfigReadOnly(MapStoreConfig config)
           
 
Method Summary
 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 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)
           
 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.

 
Methods inherited from class com.hazelcast.config.MapStoreConfig
getAsReadOnly, getClassName, getFactoryClassName, getFactoryImplementation, getImplementation, getInitialLoadMode, getProperties, getProperty, getWriteBatchSize, getWriteDelaySeconds, isEnabled, isWriteCoalescing, setWriteCoalescing, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapStoreConfigReadOnly

public MapStoreConfigReadOnly(MapStoreConfig config)
Method Detail

setClassName

public MapStoreConfig setClassName(String className)
Description copied from class: MapStoreConfig
Sets the name for the MapStore implementation class

Overrides:
setClassName in class MapStoreConfig
Parameters:
className - the name of the MapStore implementation class to set

setFactoryClassName

public MapStoreConfig setFactoryClassName(String factoryClassName)
Description copied from class: MapStoreConfig
Sets the name for the MapStoreFactory implementation class

Overrides:
setFactoryClassName in class MapStoreConfig
Parameters:
factoryClassName - the name of the MapStoreFactory implementation class to set

setWriteDelaySeconds

public MapStoreConfig setWriteDelaySeconds(int writeDelaySeconds)
Description copied from class: MapStoreConfig
Sets the number of seconds to delay before writing (storing) the dirty records

Default value is 0.

Overrides:
setWriteDelaySeconds in class MapStoreConfig
Parameters:
writeDelaySeconds - the number of seconds to delay.

setWriteBatchSize

public MapStoreConfig setWriteBatchSize(int writeBatchSize)
Description copied from class: MapStoreConfig
Sets the number of operations to be included in each batch processing round.

Default value is 1.

Overrides:
setWriteBatchSize in class MapStoreConfig
Parameters:
writeBatchSize - the number of operations to be included.

setEnabled

public MapStoreConfig setEnabled(boolean enabled)
Description copied from class: MapStoreConfig
Enables and disables this configuration

Overrides:
setEnabled in class MapStoreConfig

setImplementation

public MapStoreConfig setImplementation(Object implementation)
Description copied from class: MapStoreConfig
Sets the map store implementation object

Overrides:
setImplementation in class MapStoreConfig
Parameters:
implementation - implementation object
Returns:
this MapStoreConfig instance

setInitialLoadMode

public MapStoreConfig setInitialLoadMode(MapStoreConfig.InitialLoadMode initialLoadMode)
Description copied from class: MapStoreConfig
Sets initial load mode

LAZY: Default load mode where load is async EAGER: load mode where load is blocked till all partitions are loaded

Overrides:
setInitialLoadMode in class MapStoreConfig
Parameters:
initialLoadMode - initial load mode object

setFactoryImplementation

public MapStoreConfig setFactoryImplementation(Object factoryImplementation)
Description copied from class: MapStoreConfig
Sets the map store factory implementation object

Overrides:
setFactoryImplementation in class MapStoreConfig
Parameters:
factoryImplementation - factory implementation object
Returns:
this MapStoreConfig instance

setProperty

public MapStoreConfig setProperty(String name,
                                  String value)
Overrides:
setProperty in class MapStoreConfig

setProperties

public MapStoreConfig setProperties(Properties properties)
Overrides:
setProperties in class MapStoreConfig


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.