public interface AcquisitionRoundListener extends InputRoundListener<ADCChannel,java.nio.IntBuffer>
AcquisitionRoundListener
interface defines methods for getting notified of the
availability of sampled input values. AcquisitionRoundListener
can be registered using the
ADCChannel.startAcquisition
method.
This interface also indirectly extends the AsyncErrorHandler
interface for getting notified of asynchronous I/O errors.ADCChannel.startAcquisition
Modifier and Type | Method and Description |
---|---|
void |
failed(java.lang.Throwable exception,
ADCChannel source)
Invoked when an I/O operation fails.
|
void |
inputRoundCompleted(RoundCompletionEvent<ADCChannel,java.nio.IntBuffer> event)
Invoked when a buffer of ADC sampled values has been filled and is available for processing
or when an input overrun error occurred.
|
void inputRoundCompleted(RoundCompletionEvent<ADCChannel,java.nio.IntBuffer> event)
inputRoundCompleted
in interface InputRoundListener<ADCChannel,java.nio.IntBuffer>
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