public static class TickerChannelConsumer.TickerChannelFloatConsumer extends TickerChannelConsumer<java.lang.Float> implements FloatReceivePort
TickerChannelConsumer.TickerChannelFloatConsumerReceivePort.EOFException| Constructor and Description |
|---|
TickerChannelFloatConsumer(QueueFloatChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
float |
receiveFloat()
Retrieves a message from the channels, possibly blocking until one becomes available.
|
float |
receiveFloat(long timeout,
java.util.concurrent.TimeUnit unit)
Retrieves a message from the channels, possibly blocking until one becomes available, but no longer than the specified timeout.
|
float |
receiveFloat(Timeout timeout)
Retrieves a message from the channels, possibly blocking until one becomes available, but no longer than the specified timeout.
|
checkClosed, close, getLastIndexRead, hasMessage, isClosed, receive, receive, receive, register, tryNow, tryReceive, unregisterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasMessagereceive, receive, receive, tryReceiveclose, isClosedpublic TickerChannelFloatConsumer(QueueFloatChannel channel)
public float receiveFloat()
throws SuspendExecution,
java.lang.InterruptedException,
ReceivePort.EOFException
FloatReceivePortReceivePort.EOFException.receiveFloat in interface FloatReceivePortjava.lang.InterruptedExceptionReceivePort.EOFException - if the channel has been closed and no more messages awaitSuspendExecutionpublic float receiveFloat(long timeout,
java.util.concurrent.TimeUnit unit)
throws SuspendExecution,
java.lang.InterruptedException,
java.util.concurrent.TimeoutException,
ReceivePort.EOFException
FloatReceivePortReceivePort.EOFException.receiveFloat in interface FloatReceivePorttimeout - the maximum duration to block waiting for a message.unit - the time unit of the timeout.PortAutoCloseable.isClosed()), or if the timeout has expired.java.lang.InterruptedExceptionjava.util.concurrent.TimeoutException - if the timeout has expiredReceivePort.EOFException - if the channel has been closed and no more messages awaitSuspendExecutionpublic float receiveFloat(Timeout timeout) throws SuspendExecution, java.lang.InterruptedException, java.util.concurrent.TimeoutException, ReceivePort.EOFException
FloatReceivePortReceivePort.EOFException.receiveFloat in interface FloatReceivePorttimeout - the method will not block for longer than the amount remaining in the TimeoutPortAutoCloseable.isClosed()), or if the timeout has expired.java.lang.InterruptedExceptionjava.util.concurrent.TimeoutException - if the timeout has expiredReceivePort.EOFException - if the channel has been closed and no more messages awaitSuspendExecution