Package akka.event
Class LoggerMailbox
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractQueue<E>
-
- java.util.concurrent.ConcurrentLinkedQueue<Envelope>
-
- akka.dispatch.UnboundedMailbox.MessageQueue
-
- akka.event.LoggerMailbox
-
- All Implemented Interfaces:
MessageQueue
,MultipleConsumerSemantics
,QueueBasedMessageQueue
,UnboundedMessageQueueSemantics
,UnboundedQueueBasedMessageQueue
,LoggerMessageQueueSemantics
,java.io.Serializable
,java.lang.Iterable<Envelope>
,java.util.Collection<Envelope>
,java.util.Queue<Envelope>
public class LoggerMailbox extends UnboundedMailbox.MessageQueue implements LoggerMessageQueueSemantics
INTERNAL API- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoggerMailbox(ActorRef owner, ActorSystem system)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp(ActorRef owner, MessageQueue deadLetters)
Called when the mailbox this queue belongs to is disposed of.-
Methods inherited from class akka.dispatch.UnboundedMailbox.MessageQueue
queue
-
Methods inherited from class java.util.concurrent.ConcurrentLinkedQueue
add, addAll, clear, contains, forEach, isEmpty, iterator, offer, peek, poll, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
containsAll, equals, hashCode, parallelStream, stream, toArray
-
Methods inherited from interface akka.dispatch.QueueBasedMessageQueue
hasMessages, numberOfMessages
-
Methods inherited from interface akka.dispatch.UnboundedQueueBasedMessageQueue
dequeue, enqueue
-
-
-
-
Constructor Detail
-
LoggerMailbox
public LoggerMailbox(ActorRef owner, ActorSystem system)
-
-
Method Detail
-
cleanUp
public void cleanUp(ActorRef owner, MessageQueue deadLetters)
Description copied from interface:MessageQueue
Called when the mailbox this queue belongs to is disposed of. Normally it is expected to transfer all remaining messages into the dead letter queue which is passed in. The owner of this MessageQueue is passed in if available (e.g. for creating DeadLetters()), “/deadletters” otherwise.- Specified by:
cleanUp
in interfaceMessageQueue
- Specified by:
cleanUp
in interfaceQueueBasedMessageQueue
- Parameters:
owner
- (undocumented)deadLetters
- (undocumented)
-
-