Package org.infinispan.globalstate.impl
Class ScopedPersistentStateImpl
java.lang.Object
org.infinispan.globalstate.impl.ScopedPersistentStateImpl
- All Implemented Interfaces:
ScopedPersistentState
ScopedPersistentStateImpl.
- Since:
- 8.1
- Author:
- Tristan Tarrant
-
Field Summary
Fields inherited from interface org.infinispan.globalstate.ScopedPersistentState
GLOBAL_SCOPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsProperty
(String key) Returns whether the state contains a propertyboolean
void
forEach
(BiConsumer<String, String> action) Performs the specified action on every entry of the stateint
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 propertygetProperty
(String key) Retrieves a state propertygetScope()
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 Details
-
ScopedPersistentStateImpl
-
-
Method Details
-
getScope
Description copied from interface:ScopedPersistentState
Returns the name of this persistent state's scope- Specified by:
getScope
in interfaceScopedPersistentState
-
setProperty
Description copied from interface:ScopedPersistentState
Sets a state property. Values will be unicode-escaped when written- Specified by:
setProperty
in interfaceScopedPersistentState
-
setProperty
Description copied from interface:ScopedPersistentState
Sets an integer state property.- Specified by:
setProperty
in interfaceScopedPersistentState
-
getIntProperty
Description copied from interface:ScopedPersistentState
Retrieves an integer state property- Specified by:
getIntProperty
in interfaceScopedPersistentState
-
setProperty
Description copied from interface:ScopedPersistentState
Sets a float state property.- Specified by:
setProperty
in interfaceScopedPersistentState
-
getFloatProperty
Description copied from interface:ScopedPersistentState
Retrieves a float state property- Specified by:
getFloatProperty
in interfaceScopedPersistentState
-
getProperty
Description copied from interface:ScopedPersistentState
Retrieves a state property- Specified by:
getProperty
in interfaceScopedPersistentState
-
forEach
Description copied from interface:ScopedPersistentState
Performs the specified action on every entry of the state- Specified by:
forEach
in interfaceScopedPersistentState
-
equals
-
hashCode
public int hashCode() -
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
Description copied from interface:ScopedPersistentState
Returns whether the state contains a property- Specified by:
containsProperty
in interfaceScopedPersistentState
-