akka.io
Interface Tcp.WriteCommand

All Superinterfaces:
NoSerializationVerificationNeeded, akka.io.SelectionHandler.HasFailureMessage, Tcp.Command, Tcp.Message
All Known Subinterfaces:
Tcp.SimpleWriteCommand
All Known Implementing Classes:
Tcp.CompoundWrite, Tcp.Write, Tcp.WriteFile
Enclosing class:
Tcp

public static interface Tcp.WriteCommand
extends Tcp.Command

Common interface for all write commands, currently Tcp.Write, Tcp.WriteFile and Tcp.CompoundWrite.


Method Summary
 Tcp.Event ack()
          The acknowledgment token associated with this write command.
 Tcp.WriteCommand prepend(java.lang.Iterable<Tcp.WriteCommand> writes)
          Java API: prepends this command with a number of other writes.
 Tcp.CompoundWrite prepend(Tcp.SimpleWriteCommand that)
          Java API: prepends this command with another Write or WriteFile to form a CompoundWrite.
 boolean wantsAck()
          An acknowledgment is only sent if this write command “wants an ack”, which is equivalent to the ack() token not being a of type Tcp.NoAck.
 
Methods inherited from interface akka.io.Tcp.Command
failureMessage
 

Method Detail

ack

Tcp.Event ack()
The acknowledgment token associated with this write command.


wantsAck

boolean wantsAck()
An acknowledgment is only sent if this write command “wants an ack”, which is equivalent to the ack() token not being a of type Tcp.NoAck.


prepend

Tcp.CompoundWrite prepend(Tcp.SimpleWriteCommand that)
Java API: prepends this command with another Write or WriteFile to form a CompoundWrite.


prepend

Tcp.WriteCommand prepend(java.lang.Iterable<Tcp.WriteCommand> writes)
Java API: prepends this command with a number of other writes. The first element of the given Iterable becomes the first sub write of a potentially created CompoundWrite.