public class DeadLetters__Proxy extends Object implements DeadLetters
| Constructor and Description |
|---|
DeadLetters__Proxy(Actor actor,
Mailbox mailbox) |
| Modifier and Type | Method and Description |
|---|---|
void |
conclude()
Concludes the receiver, eventually causing
it to receive a stop() message.
|
void |
failedDelivery(DeadLetter deadLetter) |
boolean |
isStopped()
Answer whether or not the receiver is stopped.
|
void |
registerListener(DeadLettersListener listener) |
void |
stop()
Causes the receiver to stop reacting to messages and to eventually
be garbage collected.
|
public void conclude()
Stoppablepublic boolean isStopped()
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.
public void failedDelivery(DeadLetter deadLetter)
failedDelivery in interface DeadLetterspublic void registerListener(DeadLettersListener listener)
registerListener in interface DeadLettersCopyright © 2021. All rights reserved.