akka.io
Class Tcp.WriteCommand

java.lang.Object
  extended by akka.io.Tcp.WriteCommand
All Implemented Interfaces:
NoSerializationVerificationNeeded, SelectionHandler.HasFailureMessage, Tcp.Command, Tcp.Message
Direct Known Subclasses:
Tcp.CompoundWrite, Tcp.SimpleWriteCommand
Enclosing class:
Tcp

public abstract static class Tcp.WriteCommand
extends java.lang.Object
implements Tcp.Command

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


Constructor Summary
Tcp.WriteCommand()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.io.Tcp.Command
failureMessage
 

Constructor Detail

Tcp.WriteCommand

public Tcp.WriteCommand()
Method Detail

prepend

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

Parameters:
that - (undocumented)
Returns:
(undocumented)

prepend

public 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.

Parameters:
writes - (undocumented)
Returns:
(undocumented)