Package org.apache.pekko.io
Class Tcp.Register
java.lang.Object
org.apache.pekko.io.Tcp.Register
- All Implemented Interfaces:
Serializable,NoSerializationVerificationNeeded,org.apache.pekko.io.SelectionHandler.HasFailureMessage,Tcp.Command,Tcp.Message,scala.Equals,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.Register
extends Object
implements Tcp.Command, scala.Product, Serializable
This message must be sent to a TCP connection actor after receiving the
Tcp.Connected message. The connection will not read any data from the
socket until this message is received, because this message defines the
actor which will receive all inbound data.
param: handler The actor which will receive all incoming data and which will be informed when the connection is closed.
param: keepOpenOnPeerClosed If this is set to true then the connection
is not automatically closed when the peer closes its half,
requiring an explicit Tcp.CloseCommand from our side when finished.
param: useResumeWriting If this is set to true then the connection actor
will refuse all further writes after issuing a Tcp.CommandFailed
notification until ResumeWriting is received. This can
be used to implement NACK-based write backpressure.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanhandler()inthashCode()booleanintproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()booleanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.io.Tcp.Command
failureMessage
-
Constructor Details
-
Register
-
-
Method Details
-
handler
-
keepOpenOnPeerClosed
public boolean keepOpenOnPeerClosed() -
useResumeWriting
public boolean useResumeWriting() -
copy
-
copy$default$1
-
copy$default$2
public boolean copy$default$2() -
copy$default$3
public boolean 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
-