| Modifier and Type | Field and Description |
|---|---|
| public static final long | INDEFINITE_TIMEOUT
Constant for sending a message without a prescribed timeout. |
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | |
| public boolean | Returns: true if the message is sent, false if not
including a timeout of an interrupt of the sendthe message to send message, long the timeout in milliseconds or timeout)INDEFINITE_TIMEOUTSend a message, blocking until either the message is accepted or the specified timeout period elapses. |
| INDEFINITE_TIMEOUT | back to summary |
|---|---|
| public static final long INDEFINITE_TIMEOUT Constant for sending a message without a prescribed timeout. | |
| send | back to summary |
|---|---|
| public default boolean send(Message<?> message) Send a This method may block indefinitely, depending on the implementation.
To provide a maximum wait time, use
| |
| send | back to summary |
|---|---|
| public boolean send(Message<?> message, long timeout) Send a message, blocking until either the message is accepted or the specified timeout period elapses.
| |