Class Tcp.SimpleWriteCommand

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

public abstract static class Tcp.SimpleWriteCommand extends Tcp.WriteCommand
Common supertype of Tcp.Write and WriteFile.
  • Constructor Details

    • SimpleWriteCommand

      public SimpleWriteCommand()
  • Method Details

    • ack

      public abstract Tcp.Event ack()
      The acknowledgment token associated with this write command.
    • append

      public Tcp.CompoundWrite append(Tcp.WriteCommand that)
      Java API: appends this command with another WriteCommand to form a CompoundWrite.
    • wantsAck

      public boolean wantsAck()
      An acknowledgment is only sent if this write command “wants an ack”, which is equivalent to the ack() token not being a of type Tcp.NoAck.