public interface Hive extends Service<Session>
| Modifier and Type | Method and Description |
|---|---|
HiveBrowser |
getBrowser() |
NotifyFuture<WriteResult> |
startWrite(Session session,
String itemId,
Variant value,
OperationParameters operationParameters,
CallbackHandler callbackHandler)
Start a write operation
The operation is not started unless
#thawOperation(Session, long)
is called. |
NotifyFuture<WriteAttributeResults> |
startWriteAttributes(Session session,
String itemId,
Map<String,Variant> attribute,
OperationParameters operationParameters,
CallbackHandler callbackHandler)
Start a write attributes operation
The operation is not started unless
#thawOperation(Session, long)
is called. |
void |
subscribeItem(Session session,
String item)
Register to an item for event notification
|
void |
unsubscribeItem(Session session,
String item)
Unregister from an an item for event notification
|
closeSession, createSessionstart, stopvoid subscribeItem(Session session, String item) throws InvalidSessionException, InvalidItemException
session - the session to useitem - the item to register forinitial - trigger an initial cache read with the registrationInvalidSessionException - In the case the session is not a valid sessionInvalidItemException - In the case the item is not validvoid unsubscribeItem(Session session, String item) throws InvalidSessionException, InvalidItemException
session - the session to useitem - InvalidSessionException - In the case the session is not a valid sessionInvalidItemException - In the case the item is not validNotifyFuture<WriteResult> startWrite(Session session, String itemId, Variant value, OperationParameters operationParameters, CallbackHandler callbackHandler) throws InvalidSessionException, InvalidItemException, PermissionDeniedException
#thawOperation(Session, long)
is called.session - the session to useitemId - The item to write tovalue - The value to writeoperationParameters - additional parameters to the write request, can be
nullcallbackHandler - can be nullInvalidSessionException - In the case the session is not a valid sessionInvalidItemException - In the case the item is not validPermissionDeniedException - if the user has no permission to perform this operationNotifyFuture<WriteAttributeResults> startWriteAttributes(Session session, String itemId, Map<String,Variant> attribute, OperationParameters operationParameters, CallbackHandler callbackHandler) throws InvalidSessionException, InvalidItemException, PermissionDeniedException
#thawOperation(Session, long)
is called.session - the session to useitemId - The item to write toattribute - The attributes to writeoperationParameters - additional parameters to the write request, can be
nullInvalidSessionException - In the case the session is not a valid sessionInvalidItemException - In the case the item is not validPermissionDeniedException - if the user has no permission to perform this operationHiveBrowser getBrowser()