Class Tcp$

  • All Implemented Interfaces:
    ExtensionId<Tcp>, ExtensionIdProvider

    public class Tcp$
    extends java.lang.Object
    implements ExtensionId<Tcp>, ExtensionIdProvider
    Represents a successful TCP server binding.

    Not indented for user construction

    param: localAddress The address the server was bound to param: unbindAction a function that will trigger unbind of the server param: whenUnbound A future that is completed when the server is unbound, or failed if the server binding fails

    • Field Summary

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

      Constructors 
      Constructor Description
      Tcp$()  
    • Field Detail

      • MODULE$

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

      • Tcp$

        public Tcp$()
    • Method Detail

      • apply

        public Tcp apply​(ActorSystem system)
        Description copied from interface: ExtensionId
        Returns an instance of the extension identified by this ExtensionId instance.
        Specified by:
        apply in interface ExtensionId<Tcp>
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • get

        public Tcp get​(ActorSystem 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: ActorSystem): TheExtension = super.get(system)
         

        Specified by:
        get in interface ExtensionId<Tcp>
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)
      • createExtension

        public Tcp 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<Tcp>
        Parameters:
        system - (undocumented)
        Returns:
        (undocumented)