public interface DoubleSendPort extends SendPort<java.lang.Double>
double channel's producer-side interface.| Modifier and Type | Method and Description |
|---|---|
void |
send(double message)
Sends a message to the channel, possibly blocking until there's room available in the channel.
|
boolean |
send(double message,
long timeout,
java.util.concurrent.TimeUnit unit)
Sends a message to the channel, possibly blocking until there's room available in the channel, but never longer than the
specified timeout.
|
boolean |
send(double message,
Timeout timeout)
Sends a message to the channel, possibly blocking until there's room available in the channel, but never longer than the
specified timeout.
|
boolean |
trySend(double message)
Sends a message to the channel if the channel has room available.
|
close, send, send, send, trySendclose, isClosedvoid send(double message) throws SuspendExecution, java.lang.InterruptedException
OverflowPolicy, set at construction time.message - SuspendExecutionjava.lang.InterruptedExceptionboolean send(double message,
long timeout,
java.util.concurrent.TimeUnit unit)
throws SuspendExecution,
java.lang.InterruptedException,
java.util.concurrent.TimeoutException
OverflowPolicy, set at construction time.message - timeout - the maximum duration this method is allowed to wait.unit - the timeout's time unittrue if the message has been sent successfully; false if the timeout has expired.SuspendExecutionjava.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionboolean send(double message,
Timeout timeout)
throws SuspendExecution,
java.lang.InterruptedException,
java.util.concurrent.TimeoutException
OverflowPolicy, set at construction time.message - timeout - the method will not block for longer than the amount remaining in the Timeouttrue if the message has been sent successfully; false if the timeout has expired.SuspendExecutionjava.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionboolean trySend(double message)
message - true if the message has been sent; false otherwise.