Package io.confluent.security.store
Interface KeyValueStore<K,V>
- Type Parameters:
K- key typeV- value type
public interface KeyValueStore<K,V>
Key value store implemented by in-memory cache backed with data from a potentially partitioned
source like a Kafka topic. Status must be tracked separately for each partition by the implementation
of this store.
-
Method Summary
Modifier and TypeMethodDescriptionvoidSets local error for the store with the specified error message.Returns the current value associated with key if it exists or null otherwise.Updates the entry for key with the specified value.Removes the entry corresponding to the key if it is present in the store.status(int partition) Status of the metadata store for the specified partition
-
Method Details
-
get
Returns the current value associated with key if it exists or null otherwise. -
put
Updates the entry for key with the specified value. Value must not be null. Data records as well as remote status and error records are processed using this method.- Returns:
- old value if key was present in the store, null otherwise
-
remove
Removes the entry corresponding to the key if it is present in the store.- Returns:
- old value if key was present in the store, null otherwise
-
map
-
fail
Sets local error for the store with the specified error message. This is invoked if the reader encountered a fatal error. -
status
Status of the metadata store for the specified partition
-