public interface KeyValueNode
| Modifier and Type | Method and Description |
|---|---|
void |
delete(boolean force)
Delete a KeyValueNode stored by the application
in distributed KeyStore.
|
String |
getAppName()
Get the name of the application to which the
|
String |
getKey()
Get the key string associated with the KeyStore entry.
|
byte[] |
getLatestValue()
Get the byte stream stored in the KeyValueNode.
|
byte[] |
getValue()
Get the byte stream stored in the KeyValueNode.
|
void |
setValue(byte[] data,
boolean force)
Write/rewrite the data associated with a KeyValueNode.
|
String getAppName()
String getKey()
void setValue(byte[] data,
boolean force)
throws KeyStoreException.KeyNotFoundException,
KeyStoreException.DataChangedException,
ServiceNotAvailableException,
InterruptedException
data - Data to writeforce - if true, write even if node has changedKeyStoreException.DataChangedException - If the data version changedKeyStoreException.KeyNotFoundException - Entry no longer exist in
distributed storeServiceNotAvailableException - Service not UpInterruptedException - Operation interrupted exceptionbyte[] getValue()
throws KeyStoreException.KeyNotFoundException,
ServiceNotAvailableException,
InterruptedException
KeyStoreException.KeyNotFoundException - Entry no longer exist in distributed storeInterruptedException - Operation interrupted exceptionServiceNotAvailableException - Service not Upbyte[] getLatestValue()
throws KeyStoreException.KeyNotFoundException,
ServiceNotAvailableException,
InterruptedException
KeyStoreException.KeyNotFoundException - Entry no longer exist in distributed storeInterruptedException - Operation interrupted exceptionServiceNotAvailableException - Service not Upvoid delete(boolean force)
throws KeyStoreException.KeyNotFoundException,
KeyStoreException.DataChangedException,
ServiceNotAvailableException,
InterruptedException
force - if true, forces deletionKeyStoreException.DataChangedException - Entry never read or entry changed since last readKeyStoreException.KeyNotFoundException - Entry no longer exist in distributed storeInterruptedException - Operation interrupted exceptionServiceNotAvailableException - Service not UpCopyright © 2014. All Rights Reserved.