ServiceEvent
instead.@Deprecated public abstract class ServiceEvent extends ServiceEvent
S3ServiceMulti
.
Every event has an event code that indicates the state of a process when the event was generated. The event code will also give a guide as to what information the event will contain.
The event codes, and their meanings, are:
ServiceEvent.getErrorCause()
ServiceEvent.getIgnoredErrors()
EVENT_STARTED and EVENT_IN_PROGRESS events may include a ThreadWatcher
object containing
detailed information about the progress of an S3 operation, such as how many threads have
completed and, of uploads and downloads, how many bytes have been transferred at what speed and
how long until the transfer is complete.
See the event object specific to the operation you are performing for more details about the information available in service events.
EVENT_CANCELLED, EVENT_COMPLETED, EVENT_ERROR, EVENT_IGNORED_ERRORS, EVENT_IN_PROGRESS, EVENT_STARTED
Modifier | Constructor and Description |
---|---|
protected |
ServiceEvent(int eventCode,
java.lang.Object uniqueOperationId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ThreadWatcher |
getThreadWatcher()
Deprecated.
|
getErrorCause, getEventCode, getIgnoredErrors, getUniqueOperationId, setErrorCause, setIgnoredErrors, setThreadWatcher, toString
protected ServiceEvent(int eventCode, java.lang.Object uniqueOperationId)
public ThreadWatcher getThreadWatcher() throws java.lang.IllegalStateException
getThreadWatcher
in class ServiceEvent
java.lang.IllegalStateException
- a thread watcher can only be retrieved from an EVENET_STARTED or EVENT_IN_PROGRESS event.