public final class AsyncChannel.Producer<T>
extends Object
Blocking sender for AsyncChannel.produce.
send(Object) waits until the channel accepts the value, so a rendezvous producer does not run ahead of its consumer.
T - the payload type| Type Params | Return Type | Name and description |
|---|---|---|
|
public AsyncChannel<T> |
getChannel()Returns the channel this producer sends to. |
|
public void |
send(T value)Sends value and waits until it is buffered or delivered. |
Returns the channel this producer sends to.
Sends value and waits until it is buffered or delivered.
value is nullvalue - the value to send; must not be null