Class Udp

  extended by akka.io.Udp
All Implemented Interfaces:
ExtensionId<UdpExt>, ExtensionIdProvider

public class Udp
extends java.lang.Object
implements ExtensionId<UdpExt>, ExtensionIdProvider

UDP Extension for Akka&rsquo;s IO layer.

This extension implements the connectionless UDP protocol without calling connect on the underlying sockets, i.e. without restricting from whom data can be received. For &ldquo;connected&rdquo; UDP mode see UdpConnected.

For a full description of the design and philosophy behind this IO implementation please refer to the Akka online documentation.

The Java API for generating UDP commands is available at UdpMessage.

Nested Class Summary
static class Udp.Bind
          Send this message to the UdpExt.manager() in order to bind to the given local port (or an automatically assigned one if the port number is zero).
static class Udp.Bind$
static class Udp.Bound
          This message is sent by the listener actor in response to a Udp.Bind command.
static class Udp.Bound$
static interface Udp.Command
          The common type of all commands supported by the UDP implementation.
static class Udp.CommandFailed
          When a command fails it will be replied to with this message type, wrapping the failing command object.
static class Udp.CommandFailed$
static interface Udp.Event
          The common type of all events emitted by the UDP implementation.
static interface Udp.Message
          The common interface for Udp.Command and Udp.Event.
static class Udp.NoAck
          Each Udp.Send can optionally request a positive acknowledgment to be sent to the commanding actor.
static class Udp.NoAck$
          Default Udp.NoAck instance which is used when no acknowledgment information is explicitly provided.
static class Udp.Received
          When a listener actor receives a datagram from its socket it will send it to the handler designated in the Udp.Bind message using this message type.
static class Udp.Received$
static class Udp.ResumeReading$
          This message must be sent to the listener actor to re-enable reading from the socket after a SuspendReading command.
static class Udp.Send
          This message is understood by the &ldquo;simple sender&rdquo; which can be obtained by sending the Udp.SimpleSender query to the UdpExt.manager() as well as by the listener actors which are created in response to Udp.Bind.
static class Udp.Send$
static class Udp.SimpleSender
          Retrieve a reference to a &ldquo;simple sender&rdquo; actor of the UDP extension.
static class Udp.SimpleSender$
static interface Udp.SimpleSenderReady
          The &ldquo;simple sender&rdquo; sends this message type in response to a Udp.SimpleSender query.
static class Udp.SimpleSenderReady$
static class Udp.SO$
          Scala API: This object provides access to all socket options applicable to UDP sockets.
static class Udp.SuspendReading$
          Send this message to a listener actor (which sent a Udp.Bound message) to have it stop reading datagrams from the network.
static class Udp.UdpSettings
static class Udp.Unbind$
          Send this message to the listener actor that previously sent a Udp.Bound message in order to close the listening socket.
static interface Udp.Unbound
          This message is sent by the listener actor in response to an Unbind command after the socket has been closed.
static class Udp.Unbound$
Constructor Summary
Method Summary
static UdpExt createExtension(ExtendedActorSystem system)
static UdpExt get(ActorSystem system)
          Java API: retrieve the Udp extension for the given system.
static Udp$ lookup()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface akka.actor.ExtensionId
apply, createExtension, equals, get, hashCode
Methods inherited from interface akka.actor.ExtensionIdProvider

Constructor Detail


public Udp()
Method Detail


public static Udp$ lookup()


public static UdpExt createExtension(ExtendedActorSystem system)


public static UdpExt get(ActorSystem system)
Java API: retrieve the Udp extension for the given system.

system - (undocumented)