Class Tcp.ServerBinding

  • Enclosing class:
    Tcp

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

    Not indented for user construction

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.InetSocketAddress localAddress()
      The local address of the endpoint bound by the materialization of the connections Source.
      java.util.concurrent.CompletionStage<scala.runtime.BoxedUnit> unbind()
      Asynchronously triggers the unbinding of the port that was bound by the materialization of the connections Source.
      java.util.concurrent.CompletionStage<Done> whenUnbound()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • localAddress

        public java.net.InetSocketAddress localAddress()
        The local address of the endpoint bound by the materialization of the connections Source.
        Returns:
        (undocumented)
      • unbind

        public java.util.concurrent.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.

        Returns:
        (undocumented)
      • whenUnbound

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