ThreadWatcher instead.@Deprecated public class ThreadWatcher extends ThreadWatcher
As a minimum, this object will contain a count of the total number of threads involved in the operation
(via ThreadWatcher.getThreadCount()) and the count of threads that have already finished
(via ThreadWatcher.getCompletedThreads()).
For operations involving data transfer, such as uploads or downloads, this object may
also include a count of the total bytes being transferred (via ThreadWatcher.getBytesTotal()) and a count
of how many bytes have already been transferred (via ThreadWatcher.getBytesTransferred()). The
availability of this information is indicated by the result of ThreadWatcher.isBytesTransferredInfoAvailable().
Further data tranfer information may be also available, such as the current transfer rate (via
ThreadWatcher.getBytesPerSecond()) and an estimate of the time remaining until the transfer is
completed (via ThreadWatcher.getTimeRemaining()). The availability of this information is indicated
by the result of ThreadWatcher.isTimeRemainingAvailable().
It is possible to cancel some S3 operations. If an operation may be cancelled, this object will
include a CancelEventTrigger (available from getCancelEventListener()) which can
be used to trigger a cancellation. Whether the operation can be cancelled is indicated by
ThreadWatcher.isCancelTaskSupported().
| Modifier | Constructor and Description |
|---|---|
protected |
ThreadWatcher(BytesProgressWatcher[] progressWatchers)
Deprecated.
|
protected |
ThreadWatcher(long threadCount)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CancelEventTrigger |
getCancelEventListener()
Deprecated.
|
void |
updateThreadsCompletedCount(long completedThreads,
CancelEventTrigger cancelEventListener)
Deprecated.
|
cancelTask, getBytesPerSecond, getBytesTotal, getBytesTransferred, getCompletedThreads, getThreadCount, getTimeRemaining, isBytesTransferredInfoAvailable, isCancelTaskSupported, isTimeRemainingAvailable, updateThreadsCompletedCount, updateThreadsCompletedCountprotected ThreadWatcher(BytesProgressWatcher[] progressWatchers)
protected ThreadWatcher(long threadCount)
public void updateThreadsCompletedCount(long completedThreads,
CancelEventTrigger cancelEventListener)
public CancelEventTrigger getCancelEventListener()
getCancelEventListener in class ThreadWatcher