T
- The type of the value of the satepublic class State<T> extends Object
Constructor and Description |
---|
State(String key,
String etag,
StateOptions options)
Create an inmutable state
This Constructor MUST be used anytime you need to retrieve or delete a State.
|
State(T value,
String key,
String etag,
StateOptions options)
Create an inmutable state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getEtag()
Retrieve the ETag of this state.
|
String |
getKey()
Retrieves the Key of the state.
|
StateOptions |
getOptions()
Retrieve the Options used for saving the state.
|
T |
getValue()
Retrieves the Value of the state.
|
int |
hashCode() |
String |
toString() |
public State(String key, String etag, StateOptions options)
key
- - The key of the stateetag
- - The etag of the state - Keep in mind that for some state stores (like redis) only numbers
are supported.options
- - REQUIRED when saving a state.public State(T value, String key, String etag, StateOptions options)
value
- - The value of the state.key
- - The key of the state.etag
- - The etag of the state - Keep in mind that for some state stores (like redis)
only numbers are supported.options
- - REQUIRED when saving a state.public T getValue()
public String getKey()
public String getEtag()
public StateOptions getOptions()
Copyright © 2020. All rights reserved.