public class Udp
extends java.lang.Object
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 “connected” 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
.
Modifier and Type | Class and Description |
---|---|
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 “simple sender” 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 “simple sender” actor of the UDP extension.
|
static class |
Udp.SimpleSender$ |
static interface |
Udp.SimpleSenderReady
The “simple sender” 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 and Description |
---|
Udp() |
Modifier and Type | Method and Description |
---|---|
static T |
apply(ActorSystem system) |
static UdpExt |
createExtension(ExtendedActorSystem system) |
static boolean |
equals(java.lang.Object other) |
static UdpExt |
get(ActorSystem system)
Java API: retrieve the Udp extension for the given system.
|
static int |
hashCode() |
static Udp$ |
lookup() |
public static Udp$ lookup()
public static UdpExt createExtension(ExtendedActorSystem system)
public static UdpExt get(ActorSystem system)
system
- (undocumented)public static T apply(ActorSystem system)
public static final int hashCode()
public static final boolean equals(java.lang.Object other)