akka.io.Tcp

Write

case class Write(data: ByteString, ack: Event) extends SimpleWriteCommand with Product with Serializable

Write data to the TCP connection. If no ack is needed use the special NoAck object. The connection actor will reply with a akka.io.Tcp.CommandFailed message if the write could not be enqueued. If akka.io.Tcp.WriteCommand#wantsAck returns true, the connection actor will reply with the supplied akka.io.Tcp.WriteCommand#ack token once the write has been successfully enqueued to the O/S kernel. Note that this does not in any way guarantee that the data will be or have been sent! Unfortunately there is no way to determine whether a particular write has been sent by the O/S.

Linear Supertypes
Serializable, Serializable, Product, Equals, SimpleWriteCommand, WriteCommand, Command, HasFailureMessage, Message, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Write
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SimpleWriteCommand
  7. WriteCommand
  8. Command
  9. HasFailureMessage
  10. Message
  11. AnyRef
  12. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Write(data: ByteString, ack: Event)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++:(writes: Iterable[WriteCommand]): WriteCommand

    Prepends this command with a number of other 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.

    Definition Classes
    WriteCommand
  5. def +:(other: SimpleWriteCommand): CompoundWrite

    Prepends this command with another Write or WriteFile to form a CompoundWrite.

    Prepends this command with another Write or WriteFile to form a CompoundWrite.

    Definition Classes
    WriteCommand
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. val ack: Event

    The acknowledgment token associated with this write command.

    The acknowledgment token associated with this write command.

    Definition Classes
    WriteSimpleWriteCommand
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val data: ByteString

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def failureMessage: CommandFailed

    Definition Classes
    Command → HasFailureMessage
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def wantsAck: Boolean

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

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

    Definition Classes
    SimpleWriteCommand

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SimpleWriteCommand

Inherited from WriteCommand

Inherited from Command

Inherited from HasFailureMessage

Inherited from Message

Inherited from AnyRef

Inherited from Any

Ungrouped