Package org.apache.pekko.stream.scaladsl
Class Tcp.IncomingConnection
java.lang.Object
org.apache.pekko.stream.scaladsl.Tcp.IncomingConnection
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.IncomingConnection
extends Object
implements scala.Product, Serializable
Represents an accepted incoming TCP connection.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIncomingConnection(InetSocketAddress localAddress, InetSocketAddress remoteAddress, Flow<ByteString, ByteString, NotUsed> flow) -
Method Summary
Modifier and TypeMethodDescriptionbooleancopy(InetSocketAddress localAddress, InetSocketAddress remoteAddress, Flow<ByteString, ByteString, NotUsed> flow) booleanflow()<Mat> MathandleWith(Flow<ByteString, ByteString, Mat> handler, Materializer materializer) Handles the connection using the given flow, which is materialized exactly once and the respective materialized instance is returned.inthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
IncomingConnection
public IncomingConnection(InetSocketAddress localAddress, InetSocketAddress remoteAddress, Flow<ByteString, ByteString, NotUsed> flow)
-
-
Method Details
-
localAddress
-
remoteAddress
-
flow
-
handleWith
Handles the connection using the given flow, which is materialized exactly once and the respective materialized instance is returned.Convenience shortcut for:
flow.joinMat(handler)(Keep.right).run(). -
copy
public Tcp.IncomingConnection copy(InetSocketAddress localAddress, InetSocketAddress remoteAddress, Flow<ByteString, ByteString, NotUsed> flow) -
copy$default$1
-
copy$default$2
-
copy$default$3
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-