Class Tcp.ServerBinding

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product
    Enclosing class:
    Tcp

    public static final class Tcp.ServerBinding
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    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

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ServerBinding​(java.net.InetSocketAddress localAddress, scala.Function0<scala.concurrent.Future<scala.runtime.BoxedUnit>> unbindAction, scala.concurrent.Future<Done> whenUnbound)  
    • Constructor Detail

      • ServerBinding

        public ServerBinding​(java.net.InetSocketAddress localAddress,
                             scala.Function0<scala.concurrent.Future<scala.runtime.BoxedUnit>> unbindAction,
                             scala.concurrent.Future<Done> whenUnbound)
    • Method Detail

      • localAddress

        public java.net.InetSocketAddress localAddress()
      • whenUnbound

        public scala.concurrent.Future<Done> whenUnbound()
      • unbind

        public scala.concurrent.Future<scala.runtime.BoxedUnit> unbind()
      • copy

        public Tcp.ServerBinding copy​(java.net.InetSocketAddress localAddress,
                                      scala.Function0<scala.concurrent.Future<scala.runtime.BoxedUnit>> unbindAction,
                                      scala.concurrent.Future<Done> whenUnbound)
      • copy$default$1

        public java.net.InetSocketAddress copy$default$1()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object