You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/reference/asciidoc/channel.adoc
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -102,12 +102,12 @@ public QueueChannel(int capacity)
102
102
----
103
103
====
104
104
105
-
A channel that has not reached its capacity limit storeS messages in its internal queue, and the `send()` method returns immediately, even if no receiver is ready to handle the message.
106
-
If the queue has reached capacity, the sender blocks until room is available.
107
-
Alternatively, if you use the send call that accepts a timeout, the queue blocks until either room is available or the timeout period elapses, whichever occurs first.
108
-
Similarly, a `receive` call returns immediately if a message is available on the queue, but, if the queue is empty, then a receive call may block until either a message is available or the timeout elapses.
105
+
A channel that has not reached its capacity limit stores messages in its internal queue, and the `send(Message<?>)` method returns immediately, even if no receiver is ready to handle the message.
106
+
If the queue has reached capacity, the sender blocks until room is available in the queue.
107
+
Alternatively, if you use the send method that has an additional timeout parameter, the queue blocks until either room is available or the timeout period elapses, whichever occurs first.
108
+
Similarly, a `receive()` call returns immediately if a message is available on the queue, but, if the queue is empty, then a receive call may block until either a message is available or the timeout, if provided, elapses.
109
109
In either case, it is possible to force an immediate return regardless of the queue's state by passing a timeout value of 0.
110
-
Note, however, that calls to the no-arg versions of `send()` and `receive()` block indefinitely.
110
+
Note, however, that calls to the versions of `send()` and `receive()` with no `timeout` parameter block indefinitely.
0 commit comments