org.infinispan.loaders.decorators
Class SingletonStoreConfig
java.lang.Object
org.infinispan.config.AbstractConfigurationBean
org.infinispan.config.AbstractNamedCacheConfigurationBean
org.infinispan.loaders.decorators.SingletonStoreConfig
- All Implemented Interfaces:
- Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable
public class SingletonStoreConfig
- extends AbstractNamedCacheConfigurationBean
SingletonStore is a delegating cache store used for situations when only one
instance in a cluster should interact with the underlying store. The coordinator of the cluster will be responsible for
the underlying CacheStore. SingletonStore is a simply facade to a real CacheStore implementation. It always
delegates reads to the real CacheStore.
- Since:
- 4.0
- Author:
- Manik Surtani, Vladimir Blagojevic
- See Also:
- Configuration reference,
Serialized Form
enabled
protected Boolean enabled
pushStateWhenCoordinator
protected Boolean pushStateWhenCoordinator
pushStateTimeout
protected Long pushStateTimeout
SingletonStoreConfig
public SingletonStoreConfig()
isSingletonStoreEnabled
public Boolean isSingletonStoreEnabled()
setSingletonStoreEnabled
public void setSingletonStoreEnabled(Boolean singletonStoreEnabled)
- If true, the singleton store cache store is enabled.
- Parameters:
singletonStoreEnabled
-
isPushStateWhenCoordinator
public Boolean isPushStateWhenCoordinator()
setPushStateWhenCoordinator
public void setPushStateWhenCoordinator(Boolean pushStateWhenCoordinator)
- If true, when a node becomes the coordinator, it will transfer in-memory state to the
underlying cache store. This can be very useful in situations where the coordinator crashes
and there's a gap in time until the new coordinator is elected.
- Parameters:
pushStateWhenCoordinator
-
getPushStateTimeout
public Long getPushStateTimeout()
setPushStateTimeout
public void setPushStateTimeout(Long pushStateTimeout)
- If pushStateWhenCoordinator is true, this property sets the maximum number of milliseconds
that the process of pushing the in-memory state to the underlying cache loader should take.
- Parameters:
pushStateTimeout
-
clone
public SingletonStoreConfig clone()
- Specified by:
clone
in interface CloneableConfigurationComponent
- Overrides:
clone
in class AbstractNamedCacheConfigurationBean
accept
public void accept(ConfigurationBeanVisitor v)
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.