Package org.apache.pekko.io
Class Udp$
- java.lang.Object
-
- org.apache.pekko.io.Udp$
-
- All Implemented Interfaces:
ExtensionId<UdpExt>,ExtensionIdProvider
public class Udp$ extends java.lang.Object implements ExtensionId<UdpExt>, ExtensionIdProvider
UDP Extension for Akka’s IO layer.This extension implements the connectionless UDP protocol without calling
connecton the underlying sockets, i.e. without restricting from whom data can be received. For “connected” UDP mode seeUdpConnected.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
UdpMessage.
-
-
Constructor Summary
Constructors Constructor Description Udp$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UdpExtcreateExtension(ExtendedActorSystem system)Is used by Pekko to instantiate the Extension identified by this ExtensionId, internal use only.UdpExtget(ActorSystem system)Java API: retrieve the Udp extension for the given system.UdpExtget(ClassicActorSystemProvider system)Returns an instance of the extension identified by this ExtensionId instance.Udp$lookup()Returns the canonical ExtensionId for this Extension-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pekko.actor.ExtensionId
apply, apply, equals, hashCode
-
-
-
-
Field Detail
-
MODULE$
public static final Udp$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
lookup
public Udp$ lookup()
Description copied from interface:ExtensionIdProviderReturns the canonical ExtensionId for this Extension- Specified by:
lookupin interfaceExtensionIdProvider
-
createExtension
public UdpExt createExtension(ExtendedActorSystem system)
Description copied from interface:ExtensionIdIs used by Pekko to instantiate the Extension identified by this ExtensionId, internal use only.- Specified by:
createExtensionin interfaceExtensionId<UdpExt>
-
get
public UdpExt get(ActorSystem system)
Java API: retrieve the Udp extension for the given system.- Specified by:
getin interfaceExtensionId<UdpExt>
-
get
public UdpExt get(ClassicActorSystemProvider system)
Description copied from interface:ExtensionIdReturns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used from Java also, this method should be overridden to get correct return type.override def get(system: ClassicActorSystemProvider): TheExtension = super.get(system)- Specified by:
getin interfaceExtensionId<UdpExt>
-
-