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
ThisStateRepositoryholds a set of key/value pairs for defining a particular state of a component. For instance it can be a set of indexes. AnIdempotentRepositorybehaves more or less like aSetwhereas thisStateRepositorybehaves like aMap.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VgetState(K key)Gets the state value for the given key.voidsetState(K key, V value)Sets the state value for the given key.
-