public class CompletesEventually__Proxy extends Object implements CompletesEventually
| Constructor and Description |
|---|
CompletesEventually__Proxy(Actor actor,
Mailbox mailbox) |
| Modifier and Type | Method and Description |
|---|---|
Address |
address() |
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 |
with(Object outcome) |
public Address address()
address in interface CompletesEventuallypublic void conclude()
Stoppableconclude in interface CompletesEventuallyconclude in interface Stoppablepublic boolean isStopped()
StoppableisStopped in interface CompletesEventuallyisStopped in interface Stoppablepublic void stop()
StoppableNote 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.
stop in interface CompletesEventuallystop in interface Stoppablepublic void with(Object outcome)
with in interface CompletesEventuallyCopyright © 2021. All rights reserved.