Package org.globus.ftp.dc
Class SimpleTransferContext
java.lang.Object
org.globus.ftp.dc.SimpleTransferContext
- All Implemented Interfaces:
TransferContext
transfer context for single threaded transfers
using 1 data channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransferContext
return the default instance of this classA thread can ask for a quit token to perform the operations associated with closing the transfer.
-
Constructor Details
-
SimpleTransferContext
public SimpleTransferContext()
-
-
Method Details
-
getDefault
return the default instance of this class -
getQuitToken
Description copied from interface:TransferContext
A thread can ask for a quit token to perform the operations associated with closing the transfer. The token is interpreted as a permission to perform these operations. The reason for such policy lies mainly in the nature of multithreaded transfer, where there are many transfer threads sharing the same context, but the closing should be done only once.- Specified by:
getQuitToken
in interfaceTransferContext
- Returns:
- always non-null
-