akka.io.Tcp

WriteFile

case class WriteFile(filePath: String, position: Long, count: Long, ack: Event) extends SimpleWriteCommand with Product with Serializable

Write count bytes starting at position from file at filePath to the connection. The count must be > 0. 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. WriteFile
  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 WriteFile(filePath: String, position: Long, count: Long, 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
    WriteFileSimpleWriteCommand
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef
  13. def failureMessage: CommandFailed

    Definition Classes
    Command → HasFailureMessage
  14. val filePath: String

  15. def finalize(): Unit

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

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

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

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

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

    Definition Classes
    AnyRef
  21. val position: Long

  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. 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