public class DeleteVersionedObjectsEvent extends ServiceEvent
S3ServiceMulti.deleteVersionsOfObject(String[], String, String) or
S3ServiceMulti.deleteVersionsOfObjectWithMFA(String[], String, String, String, String).
EVENT_IN_PROGRESS events include an array of the S3Versions that have been deleted
since the last progress event was fired. These versions are available via
getDeletedVersions().
EVENT_CANCELLED events include an array of the S3Versions that had not been deleted
before the operation was cancelled. These versions are available via
getCancelledVersions().
EVENT_CANCELLED, EVENT_COMPLETED, EVENT_ERROR, EVENT_IGNORED_ERRORS, EVENT_IN_PROGRESS, EVENT_STARTED| Modifier and Type | Method | Description |
|---|---|---|
S3Version[] |
getCancelledVersions() |
|
S3Version[] |
getDeletedVersions() |
|
static DeleteVersionedObjectsEvent |
newCancelledEvent(S3Version[] remainingVersions,
Object uniqueOperationId) |
|
static DeleteVersionedObjectsEvent |
newCompletedEvent(Object uniqueOperationId) |
|
static DeleteVersionedObjectsEvent |
newErrorEvent(Throwable t,
Object uniqueOperationId) |
|
static DeleteVersionedObjectsEvent |
newIgnoredErrorsEvent(ThreadWatcher threadWatcher,
Throwable[] ignoredErrors,
Object uniqueOperationId) |
|
static DeleteVersionedObjectsEvent |
newInProgressEvent(ThreadWatcher threadWatcher,
S3Version[] deletedVersions,
Object uniqueOperationId) |
|
static DeleteVersionedObjectsEvent |
newStartedEvent(ThreadWatcher threadWatcher,
Object uniqueOperationId) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetErrorCause, getEventCode, getIgnoredErrors, getUniqueOperationId, toStringgetThreadWatcherpublic static DeleteVersionedObjectsEvent newErrorEvent(Throwable t, Object uniqueOperationId)
public static DeleteVersionedObjectsEvent newStartedEvent(ThreadWatcher threadWatcher, Object uniqueOperationId)
public static DeleteVersionedObjectsEvent newInProgressEvent(ThreadWatcher threadWatcher, S3Version[] deletedVersions, Object uniqueOperationId)
public static DeleteVersionedObjectsEvent newCompletedEvent(Object uniqueOperationId)
public static DeleteVersionedObjectsEvent newCancelledEvent(S3Version[] remainingVersions, Object uniqueOperationId)
public static DeleteVersionedObjectsEvent newIgnoredErrorsEvent(ThreadWatcher threadWatcher, Throwable[] ignoredErrors, Object uniqueOperationId)
public S3Version[] getDeletedVersions() throws IllegalStateException
IllegalStateException - deleted versions are only available from EVENT_IN_PROGRESS events.public S3Version[] getCancelledVersions() throws IllegalStateException
IllegalStateException - cancelled objects are only available from EVENT_CANCELLED events.