Class SingletonStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.SingletonStoreConfiguration
-
- All Implemented Interfaces:
Matchable<SingletonStoreConfiguration>,BaseConfigurationInfo,ConfigurationInfo
@Deprecated public class SingletonStoreConfiguration extends java.lang.Object implements Matchable<SingletonStoreConfiguration>, ConfigurationInfo
Deprecated.Singleton writers will be removed in 10.0. If it is desirable that all nodes don't write to the underlying store then a shared store should be used instead, as this only performs store writes at a key's primary owner.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.- Author:
- pmuir
-
-
Field Summary
Fields Modifier and Type Field Description static ElementDefinitionELEMENT_DEFINITIONDeprecated.static AttributeDefinition<java.lang.Boolean>ENABLEDDeprecated.static AttributeDefinition<java.lang.Long>PUSH_STATE_TIMEOUTDeprecated.static AttributeDefinition<java.lang.Boolean>PUSH_STATE_WHEN_COORDINATORDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AttributeSetattributeDefinitionSet()Deprecated.AttributeSetattributes()Deprecated.booleanenabled()Deprecated.If true, the singleton store cache store is enabled.booleanequals(java.lang.Object obj)Deprecated.ElementDefinitiongetElementDefinition()Deprecated.inthashCode()Deprecated.longpushStateTimeout()Deprecated.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.booleanpushStateWhenCoordinator()Deprecated.If true, when a node becomes the coordinator, it will transfer in-memory state to the underlying cache store.java.lang.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.configuration.ConfigurationInfo
subElements
-
-
-
-
Field Detail
-
ENABLED
public static final AttributeDefinition<java.lang.Boolean> ENABLED
Deprecated.
-
PUSH_STATE_TIMEOUT
public static final AttributeDefinition<java.lang.Long> PUSH_STATE_TIMEOUT
Deprecated.
-
PUSH_STATE_WHEN_COORDINATOR
public static final AttributeDefinition<java.lang.Boolean> PUSH_STATE_WHEN_COORDINATOR
Deprecated.
-
ELEMENT_DEFINITION
public static ElementDefinition ELEMENT_DEFINITION
Deprecated.
-
-
Method Detail
-
attributeDefinitionSet
public static AttributeSet attributeDefinitionSet()
Deprecated.
-
getElementDefinition
public ElementDefinition getElementDefinition()
Deprecated.- Specified by:
getElementDefinitionin interfaceBaseConfigurationInfo- Returns:
- the
ElementDefinitionof the configuration.
-
enabled
public boolean enabled()
Deprecated.If true, the singleton store cache store is enabled.
-
pushStateTimeout
public long pushStateTimeout()
Deprecated.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.
-
pushStateWhenCoordinator
public boolean pushStateWhenCoordinator()
Deprecated.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.
-
attributes
public AttributeSet attributes()
Deprecated.- Specified by:
attributesin interfaceBaseConfigurationInfo- Returns:
- the
AttributeSetdeclared by the configuration.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
-