public static final class Tcp.Write extends Tcp.SimpleWriteCommand implements scala.Product, scala.Serializable
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.Constructor and Description |
---|
Write(ByteString data,
Tcp.Event ack) |
Modifier and Type | Method and Description |
---|---|
Tcp.Event |
ack()
The acknowledgment token associated with this write command.
|
ByteString |
data() |
append, wantsAck
prepend, prepend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
$init$, productArity, productElement, productIterator, productPrefix
failureMessage
public Write(ByteString data, Tcp.Event ack)
public ByteString data()
public Tcp.Event ack()
Tcp.SimpleWriteCommand
ack
in class Tcp.SimpleWriteCommand