public interface MonitoringListener extends DeviceEventListener, AsyncErrorHandler<ADCChannel>
MonitoringListener
interface defines methods for getting notified of ADC channel under- and
over-threshold input value conditions as well as device errors. MonitoringListener
can be registered using the
ADCChannel.startMonitoring
method.ADCChannel
Modifier and Type | Method and Description |
---|---|
void |
failed(java.lang.Throwable exception,
ADCChannel source)
Invoked when an I/O operation fails.
|
void |
thresholdReached(MonitoringEvent event)
Invoked when the input value has reached the
low or high threshold. |
void thresholdReached(MonitoringEvent event)
low
or high
threshold.event
- the event that occurred.void failed(java.lang.Throwable exception, ADCChannel source)
failed
in interface AsyncErrorHandler<ADCChannel>
exception
- The exception to indicate why the I/O operation failedsource
- The ADCChannel
instance that generated the error.Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.
Legal Notices