public class WebsocketKeyValueClient extends AbstractWebsocketClient implements KeyValueClient
AbstractWebsocketClient.WebSocketRequest| Constructor and Description |
|---|
WebsocketKeyValueClient(String endPointUrl) |
WebsocketKeyValueClient(URI endpointUri) |
| Modifier and Type | Method and Description |
|---|---|
Awaitable |
deleteValue(String key)
Deletes the value associated with the given key.
|
Data<byte[]> |
getValue(String key)
Returns the
Data object associated with the given key. |
Awaitable |
putValue(String key,
Data<byte[]> value)
Adds or replaces the given value in the key value store.
|
protected Awaitable |
storeValues(List<KeyValuePair> keyValuePairs) |
close, getSession, isOpen, onClose, onError, onMessage, retryOutstandingRequests, send, sendRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic WebsocketKeyValueClient(String endPointUrl)
public WebsocketKeyValueClient(URI endpointUri)
protected Awaitable storeValues(List<KeyValuePair> keyValuePairs)
public Awaitable putValue(String key, Data<byte[]> value)
KeyValueClientputValue in interface KeyValueClientkey - The key associated with this valuevalue - The value to storepublic Data<byte[]> getValue(String key)
KeyValueClientData object associated with the given key. Returns null if there is no
associated value.getValue in interface KeyValueClientkey - The key associated with the valuepublic Awaitable deleteValue(String key)
KeyValueClientdeleteValue in interface KeyValueClientkey - The key associated with this valueCopyright © 2019 Flux Capacitor. All rights reserved.