ValueType
- The exact type of the Channel Access values that are provided by
the monitor events.public interface ChannelAccessMonitorListener<ValueType extends ChannelAccessGettableValue<?>>
Listener that can be registered with a ChannelAccessMonitor
.
The listener is notified of monitor events and monitor errors. Monitor events are typically triggered when the value or alarm state of a monitor changes, but the details depend on event mask used for the monitor and the server implementation.
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 |
monitorError(ChannelAccessMonitor<? extends ValueType> monitor,
ChannelAccessStatus status,
String message)
Handles a monitor error.
|
void |
monitorEvent(ChannelAccessMonitor<? extends ValueType> monitor,
ValueType value)
Handles a monitor event.
|
void monitorError(ChannelAccessMonitor<? extends ValueType> monitor, ChannelAccessStatus status, String message)
monitor
- monitor that triggered the event.status
- Channel Access status code associated with the error.message
- text message describing the error in greater detail (might be
null
).void monitorEvent(ChannelAccessMonitor<? extends ValueType> monitor, ValueType value)
monitor
- monitor that triggered the event.value
- Channel Access value associated with the monitor event.Copyright © 2014–2017 aquenos GmbH. All rights reserved.