Package akka.stream.javadsl
Class Tcp.ServerBinding
- java.lang.Object
-
- akka.stream.javadsl.Tcp.ServerBinding
-
- Enclosing class:
- Tcp
public static final class Tcp.ServerBinding extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServerBinding(Tcp.ServerBinding delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.InetSocketAddress
localAddress()
java.util.concurrent.CompletionStage<scala.runtime.BoxedUnit>
unbind()
Asynchronously triggers the unbinding of the port that was bound by the materialization of theconnections
Source
.java.util.concurrent.CompletionStage<Done>
whenUnbound()
-
-
-
Constructor Detail
-
ServerBinding
public ServerBinding(Tcp.ServerBinding delegate)
-
-
Method Detail
-
localAddress
public java.net.InetSocketAddress localAddress()
-
unbind
public java.util.concurrent.CompletionStage<scala.runtime.BoxedUnit> unbind()
Asynchronously triggers the unbinding of the port that was bound by the materialization of theconnections
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
-
-