public interface ScopedPersistentState
Properties
format with the
additional rule that order is preserved. In order to verify state consistency (e.g. across a cluster) a checksum
of the state's data can be computed. State properties prefixed with the '@' character will not be included as part
of the checksum computation (e.g. @timestamp)Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_SCOPE |
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String key)
Returns whether the state contains a property
|
void |
forEach(BiConsumer<String,String> action)
Performs the specified action on every entry of the state
|
int |
getChecksum()
Returns the checksum of the properties excluding those prefixed with @
|
float |
getFloatProperty(String key)
Retrieves a float state property
|
int |
getIntProperty(String key)
Retrieves an integer state property
|
String |
getProperty(String key)
Retrieves a state property
|
String |
getScope()
Returns the name of this persistent state's scope
|
void |
setProperty(String format,
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.
|
static final String GLOBAL_SCOPE
String getScope()
void setProperty(String key, String value)
void setProperty(String key, int value)
void setProperty(String format, float f)
int getIntProperty(String key)
float getFloatProperty(String key)
void forEach(BiConsumer<String,String> action)
int getChecksum()
boolean containsProperty(String key)
Copyright © 2021 JBoss by Red Hat. All rights reserved.