Class Tcp.ServerBinding

java.lang.Object
org.apache.pekko.stream.scaladsl.Tcp.ServerBinding
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product
Enclosing class:
Tcp

public static final class Tcp.ServerBinding extends Object implements scala.Product, 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:
  • Method Details

    • localAddress

      public InetSocketAddress localAddress()
    • whenUnbound

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

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

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

      public InetSocketAddress copy$default$1()
    • productPrefix

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

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

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

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

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

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

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

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

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