public static class Tcp.WriteFile extends Tcp.SimpleWriteCommand implements scala.Product, scala.Serializable
count
bytes starting at position
from file at filePath
to the connection.
The count must be > 0. 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 and Description |
---|
Tcp.WriteFile(java.lang.String filePath,
long position,
long count,
Tcp.Event ack) |
Modifier and Type | Method and Description |
---|---|
Tcp.Event |
ack()
The acknowledgment token associated with this write command.
|
long |
count() |
java.lang.String |
filePath() |
long |
position() |
append, wantsAck
prepend, prepend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
productArity, productElement, productIterator, productPrefix
failureMessage
public Tcp.WriteFile(java.lang.String filePath, long position, long count, Tcp.Event ack)
public java.lang.String filePath()
public long position()
public long count()
public Tcp.Event ack()
Tcp.SimpleWriteCommand
ack
in class Tcp.SimpleWriteCommand