Package org.apache.pekko.io
Class Tcp.WritePath
java.lang.Object
org.apache.pekko.io.Tcp.WriteCommand
org.apache.pekko.io.Tcp.SimpleWriteCommand
org.apache.pekko.io.Tcp.WritePath
- All Implemented Interfaces:
Serializable,NoSerializationVerificationNeeded,org.apache.pekko.io.SelectionHandler.HasFailureMessage,Tcp.Command,Tcp.Message,scala.Equals,scala.Product
- Enclosing class:
- Tcp
public static final class Tcp.WritePath
extends Tcp.SimpleWriteCommand
implements scala.Product, 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionack()The acknowledgment token associated with this write command.booleanlonglonglongcount()booleaninthashCode()path()longposition()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()Methods inherited from class org.apache.pekko.io.Tcp.SimpleWriteCommand
append, wantsAckMethods inherited from class org.apache.pekko.io.Tcp.WriteCommand
$plus$colon, $plus$plus$colon, prepend, prependMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNamesMethods inherited from interface org.apache.pekko.io.Tcp.Command
failureMessage
-
Constructor Details
-
WritePath
-
-
Method Details
-
path
-
position
public long position() -
count
public long count() -
ack
Description copied from class:Tcp.SimpleWriteCommandThe acknowledgment token associated with this write command.- Specified by:
ackin classTcp.SimpleWriteCommand
-
copy
-
copy$default$1
-
copy$default$2
public long copy$default$2() -
copy$default$3
public long copy$default$3() -
copy$default$4
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-