public interface Stoppable
Note that the contract of stop() is to suspend the receivers mailbox deliveries, which will prevent further processing. To arrange for eventually stopping the receiver send conclude(), which will then cause stop(). In essence the conclude() marks the mailbox for ending operations, but allows messages already queued to first be delivered.
| Modifier and Type | Method and Description |
|---|---|
void |
conclude()
Concludes the receiver, eventually causing
it to receive a stop() message.
|
boolean |
isStopped()
Answer whether or not the receiver is stopped.
|
void |
stop()
Causes the receiver to stop reacting to messages and to eventually
be garbage collected.
|
void conclude()
boolean isStopped()
void stop()
Note that the contract of stop() is to suspend the receivers mailbox deliveries, which will prevent further processing. To arrange for eventually stopping the receiver send conclude(), which will then cause stop(). In essence the conclude() marks the mailbox for ending operations, but allows messages already queued to first be delivered.
Copyright © 2021. All rights reserved.