public interface LongSendPort extends SendPort<java.lang.Long>
long channel's producer-side interface.| Modifier and Type | Method and Description |
|---|---|
void |
send(long message)
Sends a message to the channel, possibly blocking until there's room available in the channel.
|
boolean |
send(long 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(long 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(long message)
Sends a message to the channel if the channel has room available.
|
close, send, send, send, trySendclose, isClosedvoid send(long message) throws SuspendExecution, java.lang.InterruptedException
OverflowPolicy, set at construction time.message - SuspendExecutionjava.lang.InterruptedExceptionboolean send(long 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(long 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(long message)
message - true if the message has been sent; false otherwise.