Package org.apache.pekko.io
Class Tcp.CompoundWrite
java.lang.Object
org.apache.pekko.io.Tcp.WriteCommand
org.apache.pekko.io.Tcp.CompoundWrite
- All Implemented Interfaces:
Serializable,NoSerializationVerificationNeeded,org.apache.pekko.io.SelectionHandler.HasFailureMessage,Tcp.Command,Tcp.Message,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, Serializable
A write command which aggregates two other write commands. Using this construct
you can chain a number of
Tcp.Write and/or 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:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancopy(Tcp.SimpleWriteCommand head, Tcp.WriteCommand tailCommand) booleaninthashCode()head()scala.collection.Iterator<Tcp.SimpleWriteCommand>iterator()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>Methods inherited from class org.apache.pekko.io.Tcp.WriteCommand
$plus$colon, $plus$plus$colon, prepend, prependMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.collection.immutable.Iterable
iterableFactoryMethods inherited from interface scala.collection.Iterable
className, coll, collectionClassName, lazyZip, seq, stringPrefix, toIterable, toStringMethods inherited from interface scala.collection.IterableFactoryDefaults
empty, fromSpecific, newSpecificBuilderMethods inherited from interface scala.collection.IterableOnce
knownSize, stepperMethods 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, toVectorMethods 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, zipWithIndexMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.io.Tcp.Command
failureMessage
-
Constructor Details
-
CompoundWrite
-
-
Method Details
-
head
- Specified by:
headin interfacescala.collection.IterableOps<Tcp.SimpleWriteCommand,scala.collection.Iterable, scala.collection.Iterable>
-
tailCommand
-
iterator
- Specified by:
iteratorin interfacescala.collection.IterableOnce<Tcp.SimpleWriteCommand>
-
copy
-
copy$default$1
-
copy$default$2
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
equals
-