ChannelCallbackAdapter
is an adapter which provides empty implementation of the ChannelCallback.
More...
Public Member Functions | |
void | writeCompleted (String address, Object value) |
Asynchronouse write completed successfully. More... | |
void | writeFailed (String address, Object value, int linkStatus) |
An asynchronous write was attempted and failed with the given status. More... | |
void | updateValue (Channel channel) |
The channel value was updated. More... | |
void | updateValue (Channel channel, TDataType rawValue) |
The channel value was updated and is given as a parameter. More... | |
void | updateErrorStatus (Channel channel) |
The channel status was updated. More... | |
void | updateErrorStatus (Channel channel, TDataType value, int status) |
The channel status was updated. More... | |
void | channelError (String message, Throwable cause) |
Called when the an error happened in the channels callback call. More... | |
void | updateValue (ChannelReadEvent event) |
Called when a value has been updated. More... | |
void | updateError (ChannelReadEvent event) |
Called when the channel receives an error value. More... | |
ChannelCallbackAdapter
is an adapter which provides empty implementation of the ChannelCallback.
Extend this class when you do not want to provide implementation for all 5 methods from the ChannelCallback.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.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 |
Implements de.desy.tine.accesslayer.ChannelCallback.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.updateError | ( | ChannelReadEvent | event | ) |
Called when the channel receives an error value.
event | the event describing the change |
Implements de.desy.tine.accesslayer.ChannelListener.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.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 |
Implements de.desy.tine.accesslayer.ChannelCallback.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.updateErrorStatus | ( | Channel | channel, |
TDataType | value, | ||
int | status | ||
) |
The channel status was updated.
The status that triggered the call is given as a parameter.
channel | the channel which value was updated |
value | the value of the channel at the time when the event was triggered |
status | the status that triggered the callback |
Implements de.desy.tine.accesslayer.ChannelCallback2.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.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 |
Implements de.desy.tine.accesslayer.ChannelCallback.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.updateValue | ( | Channel | channel, |
TDataType | rawValue | ||
) |
The channel value was updated and is given as a parameter.
channel | the channel which value was updated |
rawValue | the value of the channel at the time when the event was triggered |
Implements de.desy.tine.accesslayer.ChannelCallback2.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.updateValue | ( | ChannelReadEvent | event | ) |
Called when a value has been updated.
event | the event describing the change |
Implements de.desy.tine.accesslayer.ChannelListener.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.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 |
Implements de.desy.tine.accesslayer.ChannelCallback.
void de.desy.tine.accesslayer.ChannelCallbackAdapter.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) |
Implements de.desy.tine.accesslayer.ChannelCallback.