akka.io
Class UdpListener

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

public class UdpListener
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
UdpListener(UdpExt udp, ChannelRegistry channelRegistry, ActorRef bindCommander, Udp.Bind bind)
           
 
Method Summary
 java.nio.channels.DatagramChannel channel()
           
 void doReceive(ChannelRegistration registration, ActorRef handler)
           
 java.lang.Object localAddress()
           
 void postStop()
          User overridable callback.
 scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> readHandlers(ChannelRegistration registration)
           
 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.
 ActorRef selector()
           
 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

UdpListener

public UdpListener(UdpExt udp,
                   ChannelRegistry channelRegistry,
                   ActorRef bindCommander,
                   Udp.Bind bind)
Method Detail

udp

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

selector

public ActorRef selector()

channel

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

localAddress

public java.lang.Object localAddress()

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)

readHandlers

public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> readHandlers(ChannelRegistration registration)

doReceive

public void doReceive(ChannelRegistration registration,
                      ActorRef handler)

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