K
- Key typeV
- Value typepublic interface StateRepository<K,V> extends Service
StateRepository
holds a set of key/value pairs for defining a particular state of a component.
For instance it can be a set of indexes.
An IdempotentRepository
behaves more or less like a Set
whereas this StateRepository
behaves
like a Map
.Modifier and Type | Method and Description |
---|---|
V |
getState(K key)
Gets the state value for the given key.
|
void |
setState(K key,
V value)
Sets the state value for the given key.
|
Apache Camel