Package com.enterprisedt.net.ftp.async
Class RemoteTransferResult
java.lang.Object
com.enterprisedt.net.ftp.async.AsyncResult
com.enterprisedt.net.ftp.async.RemoteTransferResult
- Direct Known Subclasses:
RemoteFileResult,TransferMultipleResult
Base class for result classes that deal with remote files.
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the minimum period before a transfer callback.intGet the interval used for progress notification of transfers.voidsetMinTransferNotifyPeriod(int minTransferNotifyPeriod) Set the minimum period before a transfer callback.voidsetNotifyInterval(int notifyInterval) Set the interval used for progress notification of transfers.Methods inherited from class com.enterprisedt.net.ftp.async.AsyncResult
cancelTask, endAsyncCalled, endAsyncInternal, getClient, getLocalContext, getTag, getTask, getTaskDescription, getTaskId, getThrowable, isCompleted, isSuccessful, notifyComplete, setAsIfCompleted, setClient, setEndAsyncCalled, setLocalContext, setSuccessful, setTag, setTask, setThrowable, waitTillComplete
-
Field Details
-
DEFAULT_NOTIFY_INTERVAL
public static final int DEFAULT_NOTIFY_INTERVAL- See Also:
-
-
Constructor Details
-
RemoteTransferResult
public RemoteTransferResult()
-
-
Method Details
-
getNotifyInterval
public int getNotifyInterval()Get the interval used for progress notification of transfers.- Returns:
- number of bytes between each notification.
-
setNotifyInterval
public void setNotifyInterval(int notifyInterval) Set the interval used for progress notification of transfers.- Parameters:
notifyInterval- number of bytes between each notification.
-
getMinTransferNotifyPeriod
public int getMinTransferNotifyPeriod()Get the minimum period before a transfer callback.- Returns:
- the minimum notify period (milliseconds).
-
setMinTransferNotifyPeriod
public void setMinTransferNotifyPeriod(int minTransferNotifyPeriod) Set the minimum period before a transfer callback.- Parameters:
minTransferNotifyPeriod- the minimum notify period (milliseconds).
-