Class SimpleTransferContext

  • All Implemented Interfaces:
    TransferContext

    public class SimpleTransferContext
    extends java.lang.Object
    implements TransferContext
    transfer context for single threaded transfers using 1 data channel.
    • Constructor Detail

      • SimpleTransferContext

        public SimpleTransferContext()
    • Method Detail

      • getDefault

        public static TransferContext getDefault()
        return the default instance of this class
      • getQuitToken

        public java.lang.Object 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 interface TransferContext
        Returns:
        always non-null