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 boolean
containsProperty(String key)
Returns whether the state contains a propertyboolean
equals(Object o)
void
forEach(BiConsumer<String,String> action)
Performs the specified action on every entry of the stateint
getChecksum()
Returns the checksum of the properties excluding those prefixed with @float
getFloatProperty(String key)
Retrieves a float state propertyint
getIntProperty(String key)
Retrieves an integer state propertyString
getProperty(String key)
Retrieves a state propertyString
getScope()
Returns the name of this persistent state's scopeint
hashCode()
void
setProperty(String key, float f)
Sets a float state property.void
setProperty(String key, int value)
Sets an integer state property.void
setProperty(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:ScopedPersistentState
Returns the name of this persistent state's scope- Specified by:
getScope
in interfaceScopedPersistentState
-
setProperty
public void setProperty(String key, String value)
Description copied from interface:ScopedPersistentState
Sets a state property. Values will be unicode-escaped when written- Specified by:
setProperty
in interfaceScopedPersistentState
-
setProperty
public void setProperty(String key, int value)
Description copied from interface:ScopedPersistentState
Sets an integer state property.- Specified by:
setProperty
in interfaceScopedPersistentState
-
getIntProperty
public int getIntProperty(String key)
Description copied from interface:ScopedPersistentState
Retrieves an integer state property- Specified by:
getIntProperty
in interfaceScopedPersistentState
-
setProperty
public void setProperty(String key, float f)
Description copied from interface:ScopedPersistentState
Sets a float state property.- Specified by:
setProperty
in interfaceScopedPersistentState
-
getFloatProperty
public float getFloatProperty(String key)
Description copied from interface:ScopedPersistentState
Retrieves a float state property- Specified by:
getFloatProperty
in interfaceScopedPersistentState
-
getProperty
public String getProperty(String key)
Description copied from interface:ScopedPersistentState
Retrieves a state property- Specified by:
getProperty
in interfaceScopedPersistentState
-
forEach
public void forEach(BiConsumer<String,String> action)
Description copied from interface:ScopedPersistentState
Performs the specified action on every entry of the state- Specified by:
forEach
in interfaceScopedPersistentState
-
getChecksum
public int getChecksum()
Description copied from interface:ScopedPersistentState
Returns the checksum of the properties excluding those prefixed with @- Specified by:
getChecksum
in interfaceScopedPersistentState
-
containsProperty
public boolean containsProperty(String key)
Description copied from interface:ScopedPersistentState
Returns whether the state contains a property- Specified by:
containsProperty
in interfaceScopedPersistentState
-
-