send().
Buffer instances as messages.
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public abstract T | Returns: An addressed envelope instance that has the same recipient and sender as this one, but the given content.The contents of the returned addressed envelope instance. content)Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content. |
| public Send | send()
Implements io. |
| BufferAddressedEnvelope | back to summary |
|---|---|
| protected BufferAddressedEnvelope(Buffer message, A recipient, A sender) | |
| BufferAddressedEnvelope | back to summary |
|---|---|
| protected BufferAddressedEnvelope(Buffer message, A recipient) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close the resource, making it inaccessible. Note, this method is not thread-safe unless otherwise specified.
| |
| isAccessible | back to summary |
|---|---|
| public boolean isAccessible() Implements io. Doc from io. Check if this object is accessible. | |
| replace | back to summary |
|---|---|
| public abstract T replace(Buffer content) Create a new addressed envelope instance, that has the same recipient and sender as this one, but the given content.
| |
| send | back to summary |
|---|---|
| public Send Implements io. Doc from io. Send this object instance to another Thread, transferring the ownership to the recipient. The object must be in a state where it can be sent, which includes at least being accessible. When sent, this instance will immediately become inaccessible, as if by closing it. All attempts at accessing an object that has been sent, even if that object has not yet been received, should cause an exception to be thrown.
Calling
| |