Package org.apache.pekko.io
Class Tcp.Write
java.lang.Object
org.apache.pekko.io.Tcp.WriteCommand
org.apache.pekko.io.Tcp.SimpleWriteCommand
org.apache.pekko.io.Tcp.Write
- 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.Write
extends Tcp.SimpleWriteCommand
implements scala.Product, Serializable
Write data to the TCP connection. If no ack is needed use the special
NoAck
object. The connection actor will reply with a Tcp.CommandFailed
message if the write could not be enqueued. If Tcp.SimpleWriteCommand.wantsAck()
returns true, the connection actor will reply with the supplied Tcp.SimpleWriteCommand.ack()
token once the write has been successfully enqueued to the O/S kernel.
Note that this does not in any way guarantee that the data will be
or have been sent! Unfortunately there is no way to determine whether
a particular write has been sent by the O/S.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionack()
The acknowledgment token associated with this write command.boolean
copy
(ByteString data, Tcp.Event ack) data()
boolean
int
hashCode()
int
productElement
(int x$1) productElementName
(int x$1) scala.collection.Iterator<Object>
toString()
Methods inherited from class org.apache.pekko.io.Tcp.SimpleWriteCommand
append, wantsAck
Methods inherited from class org.apache.pekko.io.Tcp.WriteCommand
$plus$colon, $plus$plus$colon, prepend, prepend
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Product
productElementNames
Methods inherited from interface org.apache.pekko.io.Tcp.Command
failureMessage
-
Constructor Details
-
Write
-
-
Method Details
-
data
-
ack
Description copied from class:Tcp.SimpleWriteCommand
The acknowledgment token associated with this write command.- Specified by:
ack
in classTcp.SimpleWriteCommand
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-