ChannelCallback is the callback interface that receives updates when a channel receives a new value or goes into an error state.
More...
Public Member Functions | |
| void | writeFailed (String address, Object value, int linkStatus) |
| An asynchronous write was attempted and failed with the given status. More... | |
| void | writeCompleted (String address, Object value) |
| Asynchronouse write completed successfully. More... | |
| void | updateValue (Channel channel) |
| The channel value was updated. More... | |
| void | updateErrorStatus (Channel channel) |
| The channel status was updated. More... | |
| void | channelError (String message, Throwable cause) |
| Called when the an error happened in the channels callback call. More... | |
ChannelCallback is the callback interface that receives updates when a channel receives a new value or goes into an error state.
| void de.desy.tine.accesslayer.ChannelCallback.channelError | ( | String | message, |
| Throwable | cause | ||
| ) |
Called when the an error happened in the channels callback call.
| message | message describing the situation |
| cause | the cause of the error |
Implemented in de.desy.tine.accesslayer.ChannelCallbackAdapter.
| void de.desy.tine.accesslayer.ChannelCallback.updateErrorStatus | ( | Channel | channel | ) |
The channel status was updated.
The current status can be obtained by Channel#getStatus(). If another update has been received while this callback is handled the Channel#getStatus() will return the newest value.
| channel | the channel which value was updated |
Implemented in de.desy.tine.accesslayer.ChannelCallbackAdapter.
| void de.desy.tine.accesslayer.ChannelCallback.updateValue | ( | Channel | channel | ) |
The channel value was updated.
The current value can be obtained by Channel#getValue(), but the value is not guaranteed to be the value that triggered this update. If another value was received while this callback is being handled the Channel#getValue() will return the new value.
| channel | the channel which value was updated |
Implemented in de.desy.tine.accesslayer.ChannelCallbackAdapter.
| void de.desy.tine.accesslayer.ChannelCallback.writeCompleted | ( | String | address, |
| Object | value | ||
| ) |
Asynchronouse write completed successfully.
| address | the name of the property to which the values was written |
| value | the value that was written |
Implemented in de.desy.tine.accesslayer.ChannelCallbackAdapter.
| void de.desy.tine.accesslayer.ChannelCallback.writeFailed | ( | String | address, |
| Object | value, | ||
| int | linkStatus | ||
| ) |
An asynchronous write was attempted and failed with the given status.
| address | the name of the property to which the values was written |
| value | the value that was written |
| linkStatus | the status (can be converted to string by TErrorList#toString(int) |
Implemented in de.desy.tine.accesslayer.ChannelCallbackAdapter.
1.8.17