Added cleanUp callback in Mailbox, dused in ZooKeeper. Some minor cleanup

This commit is contained in:
Patrik Nordwall 2011-11-15 14:39:43 +01:00
parent cf675d29ce
commit a6e75fb702
6 changed files with 19 additions and 16 deletions

View file

@ -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 {