Package org.apache.camel.spi
Interface StateRepository<K,V>
-
- Type Parameters:
K
- Key typeV
- Value type
- All Superinterfaces:
AutoCloseable
,Service
public interface StateRepository<K,V> extends Service
ThisStateRepository
holds a set of key/value pairs for defining a particular state of a component. For instance it can be a set of indexes. AnIdempotentRepository
behaves more or less like aSet
whereas thisStateRepository
behaves like aMap
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-