Class Tcp.WriteCommand

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

public abstract static class Tcp.WriteCommand extends Object implements Tcp.Command
Common interface for all write commands.
  • Constructor Details

    • WriteCommand

      public WriteCommand()
  • Method Details

    • $plus$colon

      public Tcp.CompoundWrite $plus$colon(Tcp.SimpleWriteCommand other)
      Prepends this command with another Write or WriteFile to form a CompoundWrite.
    • $plus$plus$colon

      public Tcp.WriteCommand $plus$plus$colon(scala.collection.Iterable<Tcp.WriteCommand> writes)
      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.
    • prepend

      Java API: prepends this command with another Write or WriteFile to form a CompoundWrite.
    • prepend

      public Tcp.WriteCommand prepend(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.