Package org.apache.pekko.stream.javadsl
Class Tcp.ServerBinding
java.lang.Object
org.apache.pekko.stream.javadsl.Tcp.ServerBinding
- Enclosing class:
- Tcp
Represents a prospective TCP server binding.
Not indented for user construction
-
Method Summary
Modifier and TypeMethodDescriptionThe local address of the endpoint bound by the materialization of theconnectionsSource.CompletionStage<scala.runtime.BoxedUnit>unbind()Asynchronously triggers the unbinding of the port that was bound by the materialization of theconnectionsSource.
-
Method Details
-
localAddress
The local address of the endpoint bound by the materialization of theconnectionsSource. -
unbind
Asynchronously triggers the unbinding of the port that was bound by the materialization of theconnectionsSource.The produced
CompletionStageis fulfilled when the unbinding has been completed. -
whenUnbound
- Returns:
- A completion operator that is completed when manually unbound, or failed if the server fails
-