public interface ProxyStore
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.DefaultProxyStore
Modifier and Type | Method and Description |
---|---|
Splittable |
get(java.lang.String key)
Called by
ProxySerializer to retrieve a value previously provided
to put(String, Splittable) . |
int |
nextId()
Returns a non-negative sequence number.
|
void |
put(java.lang.String key,
Splittable value)
Called by
ProxySerializer to store a value. |
Splittable get(java.lang.String key)
ProxySerializer
to retrieve a value previously provided
to put(String, Splittable)
.key
- the keynull
if key
is unknownint nextId()
void put(java.lang.String key, Splittable value)
ProxySerializer
to store a value.key
- a key value that will be passed to get(String)
value
- the data to storeSplittable.getPayload()