Package akka.io

Class 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.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Udp$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Udp$()  
    • Field Detail

      • MODULE$

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

      • Udp$

        public Udp$()
    • Method Detail

      • createExtension

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

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