akka.io
Class UdpSender

java.lang.Object
  extended by akka.io.UdpSender
All Implemented Interfaces:
Actor, ActorLogging, RequiresMessageQueue<UnboundedMessageQueueSemantics>, WithUdpSend

public class UdpSender
extends java.lang.Object
implements Actor, ActorLogging, WithUdpSend, RequiresMessageQueue<UnboundedMessageQueueSemantics>

INTERNAL API


Nested Class Summary
 
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$
 
Constructor Summary
UdpSender(UdpExt udp, ChannelRegistry channelRegistry, ActorRef commander, scala.collection.immutable.Traversable<Inet.SocketOption> options)
           
 
Method Summary
 java.nio.channels.DatagramChannel channel()
           
 void postStop()
          User overridable callback.
 scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
          This defines the initial actor behavior, it must return a partial function with the actor logic.
 UdpExt udp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.actor.Actor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, postRestart, preRestart, preStart, self, sender, supervisorStrategy, unhandled
 
Methods inherited from interface akka.actor.ActorLogging
_log, log
 
Methods inherited from interface akka.io.WithUdpSend
doSend, hasWritePending, pendingCommander, pendingSend, retriedSend, sendHandlers, settings
 

Constructor Detail

UdpSender

public UdpSender(UdpExt udp,
                 ChannelRegistry channelRegistry,
                 ActorRef commander,
                 scala.collection.immutable.Traversable<Inet.SocketOption> options)
Method Detail

udp

public UdpExt udp()
Specified by:
udp in interface WithUdpSend

channel

public java.nio.channels.DatagramChannel channel()
Specified by:
channel in interface WithUdpSend

receive

public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Description copied from interface: Actor
This defines the initial actor behavior, it must return a partial function with the actor logic.

Specified by:
receive in interface Actor
Returns:
(undocumented)

postStop

public void postStop()
Description copied from interface: Actor
User overridable callback.

Is called asynchronously after 'actor.stop()' is invoked. Empty default implementation.

Specified by:
postStop in interface Actor