Package akka.io

Class Tcp.WritePath

  • All Implemented Interfaces:
    NoSerializationVerificationNeeded, akka.io.SelectionHandler.HasFailureMessage, Tcp.Command, Tcp.Message, java.io.Serializable, scala.Equals, scala.Product
    Enclosing class:
    Tcp

    public static final class Tcp.WritePath
    extends Tcp.SimpleWriteCommand
    implements scala.Product, java.io.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 Tcp.CommandFailed message if the write could not be enqueued. If Tcp.SimpleWriteCommand.wantsAck() returns true, the connection actor will reply with the supplied Tcp.SimpleWriteCommand.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.
    See Also:
    Serialized Form
    • Constructor Detail

      • WritePath

        public WritePath​(java.nio.file.Path path,
                         long position,
                         long count,
                         Tcp.Event ack)
    • Method Detail

      • path

        public java.nio.file.Path path()
      • position

        public long position()
      • count

        public long count()
      • copy$default$1

        public java.nio.file.Path copy$default$1()
      • copy$default$2

        public long copy$default$2()
      • copy$default$3

        public long copy$default$3()
      • copy$default$4

        public Tcp.Event copy$default$4()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object