Class Tcp.CompoundWrite
A write command which aggregates two other write commands. Using this construct
you can chain a number of Tcp.Write 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.
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public sealed class Tcp.CompoundWrite : Tcp.WriteCommand, INoSerializationVerificationNeeded, IEnumerable<Tcp.SimpleWriteCommand>, IEnumerable
Constructors
| Edit this page View SourceCompoundWrite(SimpleWriteCommand, WriteCommand)
Declaration
public CompoundWrite(Tcp.SimpleWriteCommand head, Tcp.WriteCommand tailCommand)
Parameters
| Type | Name | Description |
|---|---|---|
| Tcp.SimpleWriteCommand | head | |
| Tcp.WriteCommand | tailCommand |
Properties
| Edit this page View SourceBytes
The number of bytes that will be written to the socket.
Declaration
public override long Bytes { get; }
Property Value
| Type | Description |
|---|---|
| long |
Overrides
| Edit this page View SourceHead
Declaration
public Tcp.SimpleWriteCommand Head { get; }
Property Value
| Type | Description |
|---|---|
| Tcp.SimpleWriteCommand |
TailCommand
Declaration
public Tcp.WriteCommand TailCommand { get; }
Property Value
| Type | Description |
|---|---|
| Tcp.WriteCommand |
Methods
| Edit this page View SourceGetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<Tcp.SimpleWriteCommand> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<Tcp.SimpleWriteCommand> | An enumerator that can be used to iterate through the collection. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Edit this page