Class Udp$

java.lang.Object
org.apache.pekko.io.Udp$
All Implemented Interfaces:
ExtensionId<UdpExt>, ExtensionIdProvider

public class Udp$ extends 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 Pekko online documentation.

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

  • Field Details

    • MODULE$

      public static final Udp$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • Udp$

      public Udp$()
  • Method Details

    • lookup

      public Udp$ lookup()
      Description copied from interface: ExtensionIdProvider
      Returns the canonical ExtensionId for this Extension
      Specified by:
      lookup in interface ExtensionIdProvider
    • createExtension

      public UdpExt createExtension(ExtendedActorSystem system)
      Description copied from interface: ExtensionId
      Is used by Pekko to instantiate the Extension identified by this ExtensionId, internal use only.
      Specified by:
      createExtension in interface ExtensionId<UdpExt>
    • get

      public UdpExt get(ActorSystem system)
      Java API: retrieve the Udp extension for the given system.
      Specified by:
      get in interface ExtensionId<UdpExt>
    • get

      public UdpExt get(ClassicActorSystemProvider system)
      Description copied from interface: ExtensionId
      Returns 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:
      get in interface ExtensionId<UdpExt>