Package akka.io
Class Tcp.CompoundWrite
- java.lang.Object
-
- akka.io.Tcp.WriteCommand
-
- akka.io.Tcp.CompoundWrite
-
- All Implemented Interfaces:
NoSerializationVerificationNeeded,akka.io.SelectionHandler.HasFailureMessage,Tcp.Command,Tcp.Message,java.io.Serializable,scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>,scala.collection.Iterable<Tcp.SimpleWriteCommand>,scala.collection.IterableFactoryDefaults<Tcp.SimpleWriteCommand,scala.collection.Iterable>,scala.collection.IterableOnce<Tcp.SimpleWriteCommand>,scala.collection.IterableOnceOps<Tcp.SimpleWriteCommand,scala.collection.Iterable,scala.collection.Iterable>,scala.collection.IterableOps<Tcp.SimpleWriteCommand,scala.collection.Iterable,scala.collection.Iterable>,scala.Equals,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.CompoundWrite extends Tcp.WriteCommand implements scala.collection.immutable.Iterable<Tcp.SimpleWriteCommand>, scala.Product, java.io.Serializable
A write command which aggregates two other write commands. Using this construct you can chain a number ofTcp.Writeand/orTcp.WriteFilecommands 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 containackrequests they will be honored as soon as the respective write has been written completely.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompoundWrite(Tcp.SimpleWriteCommand head, Tcp.WriteCommand tailCommand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEqual(java.lang.Object x$1)Tcp.CompoundWritecopy(Tcp.SimpleWriteCommand head, Tcp.WriteCommand tailCommand)Tcp.SimpleWriteCommandcopy$default$1()Tcp.WriteCommandcopy$default$2()booleanequals(java.lang.Object x$1)inthashCode()Tcp.SimpleWriteCommandhead()scala.collection.Iterator<Tcp.SimpleWriteCommand>iterator()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()Tcp.WriteCommandtailCommand()-
Methods inherited from class akka.io.Tcp.WriteCommand
$plus$colon, $plus$plus$colon, prepend, prepend
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.collection.Iterable
className, coll, collectionClassName, lazyZip, seq, stringPrefix, toIterable, toString
-
Methods inherited from interface scala.collection.IterableFactoryDefaults
empty, fromSpecific, newSpecificBuilder
-
Methods inherited from interface scala.collection.IterableOnceOps
$colon$bslash, $div$colon, addString, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToArray, copyToBuffer, corresponds, count, exists, find, fold, foldLeft, foldRight, forall, foreach, hasDefiniteSize, isEmpty, max, maxBy, maxByOption, maxOption, min, minBy, minByOption, minOption, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRight, reduceRightOption, reversed, size, sum, to, toArray, toBuffer, toIndexedSeq, toIterator, toList, toMap, toSeq, toSet, toStream, toVector
-
Methods inherited from interface scala.collection.IterableOps
$plus$plus, $plus$plus$colon, collect, companion, concat, drop, dropRight, dropWhile, filter, filterNot, flatMap, flatten, groupBy, grouped, groupMap, groupMapReduce, headOption, init, inits, isTraversableAgain, last, lastOption, map, partition, partitionMap, repr, scan, scanLeft, scanRight, sizeCompare, sizeCompare, sizeIs, slice, sliding, sliding, span, splitAt, tail, tails, take, takeRight, takeWhile, tapEach, toTraversable, transpose, unzip, unzip3, view, view, withFilter, zip, zipAll, zipWithIndex
-
Methods inherited from interface akka.io.Tcp.Command
failureMessage
-
-
-
-
Constructor Detail
-
CompoundWrite
public CompoundWrite(Tcp.SimpleWriteCommand head, Tcp.WriteCommand tailCommand)
-
-
Method Detail
-
head
public Tcp.SimpleWriteCommand head()
- Specified by:
headin interfacescala.collection.IterableOps<Tcp.SimpleWriteCommand,scala.collection.Iterable,scala.collection.Iterable>
-
tailCommand
public Tcp.WriteCommand tailCommand()
-
iterator
public scala.collection.Iterator<Tcp.SimpleWriteCommand> iterator()
- Specified by:
iteratorin interfacescala.collection.IterableOnce<Tcp.SimpleWriteCommand>
-
copy
public Tcp.CompoundWrite copy(Tcp.SimpleWriteCommand head, Tcp.WriteCommand tailCommand)
-
copy$default$1
public Tcp.SimpleWriteCommand copy$default$1()
-
copy$default$2
public Tcp.WriteCommand copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-