akka.io
Class UdpListener
java.lang.Object
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
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 |
UdpListener
public UdpListener(UdpExt udp,
ChannelRegistry channelRegistry,
ActorRef bindCommander,
Udp.Bind bind)
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