ServerBinding

org.apache.pekko.stream.javadsl.Tcp.ServerBinding
final class ServerBinding

Represents a prospective TCP server binding.

Not indented for user construction

Attributes

Source
Tcp.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def localAddress: InetSocketAddress

The local address of the endpoint bound by the materialization of the connections Source.

The local address of the endpoint bound by the materialization of the connections Source.

Attributes

Source
Tcp.scala
def unbind(): CompletionStage[Unit]

Asynchronously triggers the unbinding of the port that was bound by the materialization of the connections Source.

Asynchronously triggers the unbinding of the port that was bound by the materialization of the connections Source.

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

Attributes

Source
Tcp.scala
def whenUnbound(): CompletionStage[Done]

Attributes

Returns

A completion operator that is completed when manually unbound, or failed if the server fails

Source
Tcp.scala