Interface ProxyStore
- All Known Implementing Classes:
DefaultProxyStore
public interface ProxyStore
A ProxyStore provides a
ProxySerializer with access to a low-level
persistence mechanism. The ProxyStore does not need to be able to interpret
the data sent to it by the ProxySerializer; it is merely a wrapper around a
persistence mechanism.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCalled byProxySerializerto retrieve a value previously provided toput(String, Splittable).intnextId()Returns a non-negative sequence number.voidput(String key, Splittable value) Called byProxySerializerto store a value.
-
Method Details
-
get
Called byProxySerializerto retrieve a value previously provided toput(String, Splittable).- Parameters:
key- the key- Returns:
- the associated value or
nullifkeyis unknown
-
nextId
int nextId()Returns a non-negative sequence number. The actual sequence of values returned by this method is unimportant, as long as the numbers in the sequence are unique.
-