Package org.infinispan.globalstate.impl
Class ScopedPersistentStateImpl
- java.lang.Object
-
- org.infinispan.globalstate.impl.ScopedPersistentStateImpl
-
- All Implemented Interfaces:
ScopedPersistentState
public class ScopedPersistentStateImpl extends Object implements ScopedPersistentState
ScopedPersistentStateImpl.- Since:
- 8.1
- Author:
- Tristan Tarrant
-
-
Field Summary
-
Fields inherited from interface org.infinispan.globalstate.ScopedPersistentState
GLOBAL_SCOPE
-
-
Constructor Summary
Constructors Constructor Description ScopedPersistentStateImpl(String scope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsProperty(String key)Returns whether the state contains a propertybooleanequals(Object o)voidforEach(BiConsumer<String,String> action)Performs the specified action on every entry of the stateintgetChecksum()Returns the checksum of the properties excluding those prefixed with @floatgetFloatProperty(String key)Retrieves a float state propertyintgetIntProperty(String key)Retrieves an integer state propertyStringgetProperty(String key)Retrieves a state propertyStringgetScope()Returns the name of this persistent state's scopeinthashCode()voidsetProperty(String key, float f)Sets a float state property.voidsetProperty(String key, int value)Sets an integer state property.voidsetProperty(String key, String value)Sets a state property.
-
-
-
Constructor Detail
-
ScopedPersistentStateImpl
public ScopedPersistentStateImpl(String scope)
-
-
Method Detail
-
getScope
public String getScope()
Description copied from interface:ScopedPersistentStateReturns the name of this persistent state's scope- Specified by:
getScopein interfaceScopedPersistentState
-
setProperty
public void setProperty(String key, String value)
Description copied from interface:ScopedPersistentStateSets a state property. Values will be unicode-escaped when written- Specified by:
setPropertyin interfaceScopedPersistentState
-
setProperty
public void setProperty(String key, int value)
Description copied from interface:ScopedPersistentStateSets an integer state property.- Specified by:
setPropertyin interfaceScopedPersistentState
-
getIntProperty
public int getIntProperty(String key)
Description copied from interface:ScopedPersistentStateRetrieves an integer state property- Specified by:
getIntPropertyin interfaceScopedPersistentState
-
setProperty
public void setProperty(String key, float f)
Description copied from interface:ScopedPersistentStateSets a float state property.- Specified by:
setPropertyin interfaceScopedPersistentState
-
getFloatProperty
public float getFloatProperty(String key)
Description copied from interface:ScopedPersistentStateRetrieves a float state property- Specified by:
getFloatPropertyin interfaceScopedPersistentState
-
getProperty
public String getProperty(String key)
Description copied from interface:ScopedPersistentStateRetrieves a state property- Specified by:
getPropertyin interfaceScopedPersistentState
-
forEach
public void forEach(BiConsumer<String,String> action)
Description copied from interface:ScopedPersistentStatePerforms the specified action on every entry of the state- Specified by:
forEachin interfaceScopedPersistentState
-
getChecksum
public int getChecksum()
Description copied from interface:ScopedPersistentStateReturns the checksum of the properties excluding those prefixed with @- Specified by:
getChecksumin interfaceScopedPersistentState
-
containsProperty
public boolean containsProperty(String key)
Description copied from interface:ScopedPersistentStateReturns whether the state contains a property- Specified by:
containsPropertyin interfaceScopedPersistentState
-
-