Package org.globus.ftp.dc
Class SimpleTransferContext
- java.lang.Object
-
- org.globus.ftp.dc.SimpleTransferContext
-
- All Implemented Interfaces:
TransferContext
public class SimpleTransferContext extends java.lang.Object implements TransferContext
transfer context for single threaded transfers using 1 data channel.
-
-
Field Summary
Fields Modifier and Type Field Description private static SimpleTransferContextsingleton
-
Constructor Summary
Constructors Constructor Description SimpleTransferContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransferContextgetDefault()return the default instance of this classjava.lang.ObjectgetQuitToken()A thread can ask for a quit token to perform the operations associated with closing the transfer.
-
-
-
Field Detail
-
singleton
private static SimpleTransferContext singleton
-
-
Method Detail
-
getDefault
public static TransferContext getDefault()
return the default instance of this class
-
getQuitToken
public java.lang.Object getQuitToken()
Description copied from interface:TransferContextA 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:
getQuitTokenin interfaceTransferContext- Returns:
- always non-null
-
-