IncomingConnection

org.apache.pekko.stream.javadsl.Tcp.IncomingConnection

Represents an accepted incoming TCP connection.

Attributes

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

Members list

Value members

Concrete methods

A flow representing the client on the other side of the connection. This flow can be materialized only once.

A flow representing the client on the other side of the connection. This flow can be materialized only once.

Attributes

Source
Tcp.scala
def handleWith[Mat](handler: Flow[ByteString, ByteString, Mat], systemProvider: ClassicActorSystemProvider): Mat

Handles the connection using the given flow, which is materialized exactly once and the respective materialized value is returned.

Handles the connection using the given flow, which is materialized exactly once and the respective materialized value is returned.

Convenience shortcut for: flow.joinMat(handler, Keep.right).run(systemProvider).

Note that the classic or typed ActorSystem can be used as the systemProvider parameter.

Attributes

Source
Tcp.scala
def handleWith[Mat](handler: Flow[ByteString, ByteString, Mat], materializer: Materializer): Mat

Handles the connection using the given flow, which is materialized exactly once and the respective materialized value is returned.

Handles the connection using the given flow, which is materialized exactly once and the respective materialized value is returned.

Convenience shortcut for: flow.joinMat(handler, Keep.right).run(materializer).

Prefer the method taking an ActorSystem unless you have special requirements

Attributes

Source
Tcp.scala
def localAddress: InetSocketAddress

The local address this connection is bound to.

The local address this connection is bound to.

Attributes

Source
Tcp.scala
def remoteAddress: InetSocketAddress

The remote address this connection is bound to.

The remote address this connection is bound to.

Attributes

Source
Tcp.scala