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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsProperty(String key) Returns whether the state contains a propertybooleanvoidforEach(BiConsumer<String, String> action) Performs the specified action on every entry of the stateintReturns the checksum of the properties excluding those prefixed with @floatgetFloatProperty(String key) Retrieves a float state propertyintgetIntProperty(String key) Retrieves an integer state propertygetProperty(String key) Retrieves a state propertygetScope()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 Details
-
ScopedPersistentStateImpl
-
-
Method Details
-
getScope
Description copied from interface:ScopedPersistentStateReturns the name of this persistent state's scope- Specified by:
getScopein interfaceScopedPersistentState
-
setProperty
Description copied from interface:ScopedPersistentStateSets a state property. Values will be unicode-escaped when written- Specified by:
setPropertyin interfaceScopedPersistentState
-
setProperty
Description copied from interface:ScopedPersistentStateSets an integer state property.- Specified by:
setPropertyin interfaceScopedPersistentState
-
getIntProperty
Description copied from interface:ScopedPersistentStateRetrieves an integer state property- Specified by:
getIntPropertyin interfaceScopedPersistentState
-
setProperty
Description copied from interface:ScopedPersistentStateSets a float state property.- Specified by:
setPropertyin interfaceScopedPersistentState
-
getFloatProperty
Description copied from interface:ScopedPersistentStateRetrieves a float state property- Specified by:
getFloatPropertyin interfaceScopedPersistentState
-
getProperty
Description copied from interface:ScopedPersistentStateRetrieves a state property- Specified by:
getPropertyin interfaceScopedPersistentState
-
forEach
Description copied from interface:ScopedPersistentStatePerforms the specified action on every entry of the state- Specified by:
forEachin interfaceScopedPersistentState
-
equals
-
hashCode
public int hashCode() -
getChecksum
public int getChecksum()Description copied from interface:ScopedPersistentStateReturns the checksum of the properties excluding those prefixed with @- Specified by:
getChecksumin interfaceScopedPersistentState
-
containsProperty
Description copied from interface:ScopedPersistentStateReturns whether the state contains a property- Specified by:
containsPropertyin interfaceScopedPersistentState
-