akka.io
Class Tcp.CompoundWrite

java.lang.Object
  extended by akka.io.Tcp.CompoundWrite
All Implemented Interfaces:
NoSerializationVerificationNeeded, akka.io.SelectionHandler.HasFailureMessage, Tcp.Command, Tcp.Message, Tcp.WriteCommand, java.io.Serializable, scala.collection.generic.FilterMonadic<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>, scala.collection.generic.GenericTraversableTemplate<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable>, scala.collection.generic.HasNewBuilder<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>, scala.collection.GenIterable<Tcp.SimpleWriteCommand>, scala.collection.GenIterableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>, scala.collection.GenTraversable<Tcp.SimpleWriteCommand>, scala.collection.GenTraversableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>, scala.collection.GenTraversableOnce<Tcp.SimpleWriteCommand>, scala.collection.Iterable<Tcp.SimpleWriteCommand>, scala.collection.IterableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>, scala.collection.Parallelizable<Tcp.SimpleWriteCommand,scala.collection.parallel.immutable.ParIterable<Tcp.SimpleWriteCommand>>, scala.collection.Traversable<Tcp.SimpleWriteCommand>, scala.collection.TraversableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>, scala.collection.TraversableOnce<Tcp.SimpleWriteCommand>, scala.Equals, scala.Immutable, scala.Product
Enclosing class:
Tcp

public static class Tcp.CompoundWrite
extends java.lang.Object
implements Tcp.WriteCommand, scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>, scala.Product, scala.Serializable

A write command which aggregates two other write commands. Using this construct you can chain a number of Tcp.Write and/or Tcp.WriteFile commands together in a way that allows them to be handled as a single write which gets written out to the network as quickly as possible. If the sub commands contain ack requests they will be honored as soon as the respective write has been written completely.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface scala.collection.TraversableLike
scala.collection.TraversableLike.WithFilter
 
Constructor Summary
Tcp.CompoundWrite(Tcp.SimpleWriteCommand head, Tcp.WriteCommand tailCommand)
           
 
Method Summary
 Tcp.Event ack()
          The acknowledgment token associated with this write command.
 Tcp.SimpleWriteCommand head()
           
 scala.collection.Iterator<Tcp.SimpleWriteCommand> iterator()
           
 Tcp.WriteCommand tailCommand()
           
 
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.WriteCommand
prepend, prepend, wantsAck
 
Methods inherited from interface akka.io.Tcp.Command
failureMessage
 
Methods inherited from interface scala.collection.immutable.Iterable
companion, parCombiner, seq
 
Methods inherited from interface scala.collection.IterableLike
canEqual, copyToArray, drop, dropRight, exists, find, foldRight, forall, foreach, grouped, isEmpty, reduceRight, sameElements, slice, sliding, sliding, take, takeRight, takeWhile, thisCollection, toCollection, toIterable, toIterator, toStream, view, view, zip, zipAll, zipWithIndex
 
Methods inherited from interface scala.Equals
equals
 
Methods inherited from interface scala.collection.TraversableLike
$plus$plus, $plus$plus$colon, $plus$plus$colon, collect, dropWhile, filter, filterNot, flatMap, groupBy, hasDefiniteSize, headOption, init, inits, isTraversableAgain, last, lastOption, map, partition, repr, scan, scanLeft, scanRight, sliceWithKnownBound, sliceWithKnownDelta, span, splitAt, stringPrefix, tail, tails, to, toString, toTraversable, withFilter
 
Methods inherited from interface scala.collection.GenTraversableLike
size
 
Methods inherited from interface scala.collection.GenTraversableOnce
$div$colon$bslash
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 

Constructor Detail

Tcp.CompoundWrite

public Tcp.CompoundWrite(Tcp.SimpleWriteCommand head,
                         Tcp.WriteCommand tailCommand)
Method Detail

head

public Tcp.SimpleWriteCommand head()
Specified by:
head in interface scala.collection.generic.GenericTraversableTemplate<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable>
Specified by:
head in interface scala.collection.GenTraversableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>
Specified by:
head in interface scala.collection.IterableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>
Specified by:
head in interface scala.collection.TraversableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>

tailCommand

public Tcp.WriteCommand tailCommand()

ack

public Tcp.Event ack()
Description copied from interface: Tcp.WriteCommand
The acknowledgment token associated with this write command.

Specified by:
ack in interface Tcp.WriteCommand

iterator

public scala.collection.Iterator<Tcp.SimpleWriteCommand> iterator()
Specified by:
iterator in interface scala.collection.GenIterableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>
Specified by:
iterator in interface scala.collection.IterableLike<Tcp.SimpleWriteCommand,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>>