public interface ChannelAccessConnectionListener
Listener monitoring the connection state of a ChannelAccessChannel
.
The listeners connectionStateChanged(ChannelAccessChannel, boolean)
method is called every time the channel's connection state changes (from
disconnected to connected or from connected to disconnected). In addition to
that it is called once with the current connection state when the listener is
registered.
In general, a listener should not run any operations that require an extended amount of time or that even block. Unless explicitly allowed by the implementation, registering such a listener with an object might result in undefined behavior, including a dead lock.
Modifier and Type | Method and Description |
---|---|
void |
connectionStateChanged(ChannelAccessChannel channel,
boolean nowConnected)
Notifies the listener of a changed connection state for the specified
channel.
|
void connectionStateChanged(ChannelAccessChannel channel, boolean nowConnected)
channel
- Channel Access channel that changed its connection state.nowConnected
- true
if the channel is now connected,
false
if it is now disconnected.Copyright © 2014–2016 aquenos GmbH. All rights reserved.