|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupUpdateHandler
Interface for callbacks as result of a group subscription. Each callback has the device name as the first parameter, which allows to find out for which device of the group the callback applies.
DeviceGroup
Method Summary | |
---|---|
void |
confirmed(String deviceName)
Invoked when the subscription request is confirmed by the data provider. |
void |
disconnected(String deviceName)
Invoked when a confirmed subscription is suspended because of a lost connection to the data source. |
void |
handleError(String deviceName,
IOError err)
Invoked if an error occured when updating the value. |
void |
handleValue(String deviceName,
Data value)
Invoked when the subscribed value is updated. |
void |
reconnected(String deviceName)
Invoked when a suspended subscription is resumed. |
void |
rejected(String deviceName,
CmwException why)
Invoked when the subscription request is rejected. |
Method Detail |
---|
void handleValue(String deviceName, Data value)
value
- the Data object containing the updated value.void handleError(String deviceName, IOError err)
err
- the error description provided by the device server.void rejected(String deviceName, CmwException why)
why
- the exception thrown in response to the subscription request.void confirmed(String deviceName)
reconnected(java.lang.String)
void disconnected(String deviceName)
reconnected(java.lang.String)
void reconnected(String deviceName)
disconnected(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |