Package akka.io
Class Tcp.WritePath
- java.lang.Object
-
- akka.io.Tcp.WriteCommand
-
- akka.io.Tcp.SimpleWriteCommand
-
- akka.io.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
Writecount
bytes starting atposition
from file atfilePath
to the connection. The count must be > 0. The connection actor will reply with aTcp.CommandFailed
message if the write could not be enqueued. IfTcp.SimpleWriteCommand.wantsAck()
returns true, the connection actor will reply with the suppliedTcp.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcp.Event
ack()
The acknowledgment token associated with this write command.boolean
canEqual(java.lang.Object x$1)
Tcp.WritePath
copy(java.nio.file.Path path, long position, long count, Tcp.Event ack)
java.nio.file.Path
copy$default$1()
long
copy$default$2()
long
copy$default$3()
Tcp.Event
copy$default$4()
long
count()
boolean
equals(java.lang.Object x$1)
int
hashCode()
java.nio.file.Path
path()
long
position()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
-
Methods inherited from class akka.io.Tcp.SimpleWriteCommand
append, wantsAck
-
Methods inherited from class akka.io.Tcp.WriteCommand
$plus$colon, $plus$plus$colon, prepend, prepend
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.io.Tcp.Command
failureMessage
-
-
-
-
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()
-
ack
public Tcp.Event ack()
Description copied from class:Tcp.SimpleWriteCommand
The acknowledgment token associated with this write command.- Specified by:
ack
in classTcp.SimpleWriteCommand
-
copy
public Tcp.WritePath copy(java.nio.file.Path path, long position, long count, Tcp.Event ack)
-
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 interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-