Package org.apache.pekko.io
Class UdpConnected
- java.lang.Object
-
- org.apache.pekko.io.UdpConnected
-
public class UdpConnected extends java.lang.ObjectUDP Extension for Akka’s IO layer.This extension implements the connectionless UDP protocol with calling
connecton the underlying sockets, i.e. with restricting from whom data can be received. For “unconnected” UDP mode seeUdp.For a full description of the design and philosophy behind this IO implementation please refer to the Pekko online documentation.
The Java API for generating UDP commands is available at
UdpConnectedMessage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUdpConnected.CommandThe common type of all commands supported by the UDP implementation.static classUdpConnected.CommandFailedWhen a command fails it will be replied to with this message type, wrapping the failing command object.static classUdpConnected.CommandFailed$static classUdpConnected.ConnectSend this message to theUdpExt.manager()in order to bind to a local port (optionally with the chosenlocalAddress) and create a UDP socket which is restricted to sending to and receiving from the givenremoteAddress.static classUdpConnected.Connect$static interfaceUdpConnected.ConnectedThis message is sent by the connection actor to the actor which sent theUdpConnected.Connectmessage when the UDP socket has been bound to the local and remote addresses given.static classUdpConnected.Connected$static classUdpConnected.Disconnect$Send this message to a connection actor (which had previously sent theUdpConnected.Connectedmessage) in order to close the socket.static interfaceUdpConnected.DisconnectedThis message is sent by the connection actor to the actor which sent theDisconnectmessage when the UDP socket has been closed.static classUdpConnected.Disconnected$static interfaceUdpConnected.EventThe common type of all events emitted by the UDP implementation.static interfaceUdpConnected.MessageThe common interface forUdpConnected.CommandandUdpConnected.Event.static classUdpConnected.NoAckEachUdpConnected.Sendcan optionally request a positive acknowledgment to be sent to the commanding actor.static classUdpConnected.NoAck$DefaultUdpConnected.NoAckinstance which is used when no acknowledgment information is explicitly provided.static classUdpConnected.ReceivedWhen a connection actor receives a datagram from its socket it will send it to the handler designated in theUdp.Bindmessage using this message type.static classUdpConnected.Received$static classUdpConnected.ResumeReading$This message must be sent to the listener actor to re-enable reading from the socket after aSuspendReadingcommand.static classUdpConnected.SendThis message is understood by the connection actors to send data to their designated destination.static classUdpConnected.Send$static classUdpConnected.SuspendReading$Send this message to a listener actor (which sent aUdp.Boundmessage) to have it stop reading datagrams from the network.
-
Constructor Summary
Constructors Constructor Description UdpConnected()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Tapply(ActorSystem system)static Tapply(ClassicActorSystemProvider system)static UdpConnectedExtcreateExtension(ExtendedActorSystem system)static booleanequals(java.lang.Object other)static UdpConnectedExtget(ActorSystem system)Java API: retrieve the UdpConnected extension for the given system.static UdpConnectedExtget(ClassicActorSystemProvider system)static inthashCode()static UdpConnected$lookup()
-
-
-
Method Detail
-
lookup
public static UdpConnected$ lookup()
-
createExtension
public static UdpConnectedExt createExtension(ExtendedActorSystem system)
-
get
public static UdpConnectedExt get(ActorSystem system)
Java API: retrieve the UdpConnected extension for the given system.
-
get
public static UdpConnectedExt get(ClassicActorSystemProvider system)
-
apply
public static T apply(ActorSystem system)
-
apply
public static T apply(ClassicActorSystemProvider system)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
-