public interface CountingListener extends PeripheralEventListener, AsyncErrorHandler<PulseCounter>
CountingListenerinterface defines methods for getting notified of pulse counter counting conditions such as counter terminal value reached or counting session time interval expired as well of peripheral errors. A
CountingListenercan be registered using the
PulseCounter.startCounting(int, long, com.oracle.deviceaccess.counter.CountingListener)method.
|Modifier and Type||Method and Description|
Invoked when the pulse count has reached the specified terminal value or the specified counting time interval has expired - whichever happens first.
Invoked when an I/O operation fails.
void countValueAvailable(CountingEvent event)
event- the event that occurred.
void failed(java.lang.Throwable exception, PulseCounter source)
Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved.