akka.io
Interface Tcp.WriteCommand

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

public static interface Tcp.WriteCommand
extends Tcp.Command

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


Method Summary
 Tcp.Event ack()
          The acknowledgment token associated with this write command.
 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.