Package org.apache.pekko.stream.scaladsl
Class Tcp.IncomingConnection
- java.lang.Object
-
- org.apache.pekko.stream.scaladsl.Tcp.IncomingConnection
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.IncomingConnection extends java.lang.Object implements scala.Product, java.io.Serializable
Represents an accepted incoming TCP connection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IncomingConnection(java.net.InetSocketAddress localAddress, java.net.InetSocketAddress remoteAddress, Flow<ByteString,ByteString,NotUsed> flow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object x$1)
Tcp.IncomingConnection
copy(java.net.InetSocketAddress localAddress, java.net.InetSocketAddress remoteAddress, Flow<ByteString,ByteString,NotUsed> flow)
java.net.InetSocketAddress
copy$default$1()
java.net.InetSocketAddress
copy$default$2()
Flow<ByteString,ByteString,NotUsed>
copy$default$3()
boolean
equals(java.lang.Object x$1)
Flow<ByteString,ByteString,NotUsed>
flow()
<Mat> Mat
handleWith(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.int
hashCode()
java.net.InetSocketAddress
localAddress()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.net.InetSocketAddress
remoteAddress()
java.lang.String
toString()
-
-
-
Constructor Detail
-
IncomingConnection
public IncomingConnection(java.net.InetSocketAddress localAddress, java.net.InetSocketAddress remoteAddress, Flow<ByteString,ByteString,NotUsed> flow)
-
-
Method Detail
-
localAddress
public java.net.InetSocketAddress localAddress()
-
remoteAddress
public java.net.InetSocketAddress remoteAddress()
-
flow
public Flow<ByteString,ByteString,NotUsed> flow()
-
handleWith
public <Mat> Mat handleWith(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.Convenience shortcut for:
flow.joinMat(handler)(Keep.right).run()
.
-
copy
public Tcp.IncomingConnection copy(java.net.InetSocketAddress localAddress, java.net.InetSocketAddress remoteAddress, Flow<ByteString,ByteString,NotUsed> flow)
-
copy$default$1
public java.net.InetSocketAddress copy$default$1()
-
copy$default$2
public java.net.InetSocketAddress copy$default$2()
-
copy$default$3
public Flow<ByteString,ByteString,NotUsed> copy$default$3()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-