Class Tcp.ServerBinding

java.lang.Object
org.apache.pekko.stream.javadsl.Tcp.ServerBinding
Enclosing class:
Tcp

public static final class Tcp.ServerBinding extends Object
Represents a prospective TCP server binding.

Not indented for user construction

  • Method Details

    • localAddress

      public InetSocketAddress localAddress()
      The local address of the endpoint bound by the materialization of the connections Source.
    • unbind

      public CompletionStage<scala.runtime.BoxedUnit> unbind()
      Asynchronously triggers the unbinding of the port that was bound by the materialization of the connections Source.

      The produced CompletionStage is fulfilled when the unbinding has been completed.

    • whenUnbound

      public CompletionStage<Done> whenUnbound()
      Returns:
      A completion operator that is completed when manually unbound, or failed if the server fails