|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectakka.io.Tcp.WriteCommand
akka.io.Tcp.SimpleWriteCommand
akka.io.Tcp.Write
public static class Tcp.Write
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 WriteCommand#wantsAck
returns true, the connection actor will reply with the supplied WriteCommand#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 Summary | |
|---|---|
Tcp.Write(ByteString data,
Tcp.Event ack)
|
|
| Method Summary | |
|---|---|
Tcp.Event |
ack()
The acknowledgment token associated with this write command. |
ByteString |
data()
|
| Methods inherited from class akka.io.Tcp.SimpleWriteCommand |
|---|
append, wantsAck |
| Methods inherited from class akka.io.Tcp.WriteCommand |
|---|
prepend, prepend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface scala.Product |
|---|
productArity, productElement, productIterator, productPrefix |
| Methods inherited from interface scala.Equals |
|---|
canEqual, equals |
| Methods inherited from interface akka.io.Tcp.Command |
|---|
failureMessage |
| Constructor Detail |
|---|
public Tcp.Write(ByteString data,
Tcp.Event ack)
| Method Detail |
|---|
public ByteString data()
public Tcp.Event ack()
Tcp.SimpleWriteCommand
ack in class Tcp.SimpleWriteCommand
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||