final case class Register(handler: ActorRef, keepOpenOnPeerClosed: Boolean = false, useResumeWriting: Boolean = true) extends Command with Product with Serializable
This message must be sent to a TCP connection actor after receiving the 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.
- handler
The actor which will receive all incoming data and which will be informed when the connection is closed.
- keepOpenOnPeerClosed
If this is set to true then the connection is not automatically closed when the peer closes its half, requiring an explicit CloseCommand from our side when finished.
- useResumeWriting
If this is set to true then the connection actor will refuse all further writes after issuing a CommandFailed notification until
ResumeWriting
is received. This can be used to implement NACK-based write backpressure.
- Source
- Tcp.scala
- Alphabetic
- By Inheritance
- Register
- Serializable
- Product
- Equals
- Command
- HasFailureMessage
- Message
- NoSerializationVerificationNeeded
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Register(handler: ActorRef, keepOpenOnPeerClosed: Boolean = false, useResumeWriting: Boolean = true)
- handler
The actor which will receive all incoming data and which will be informed when the connection is closed.
- keepOpenOnPeerClosed
If this is set to true then the connection is not automatically closed when the peer closes its half, requiring an explicit CloseCommand from our side when finished.
- useResumeWriting
If this is set to true then the connection actor will refuse all further writes after issuing a CommandFailed notification until
ResumeWriting
is received. This can be used to implement NACK-based write backpressure.