Added cleanUp callback in Mailbox, dused in ZooKeeper. Some minor cleanup
This commit is contained in:
parent
cf675d29ce
commit
a6e75fb702
6 changed files with 19 additions and 16 deletions
|
|
@ -194,6 +194,12 @@ abstract class Mailbox(val actor: ActorCell) extends AbstractMailbox with Messag
|
|||
|
||||
@inline
|
||||
final def dispatcher: MessageDispatcher = actor.dispatcher
|
||||
|
||||
/**
|
||||
* Overridable callback to clean up the mailbox,
|
||||
* called when an actor is unregistered.
|
||||
*/
|
||||
protected[dispatch] def cleanUp() {}
|
||||
}
|
||||
|
||||
trait MessageQueue {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue