public class ListObjectsEvent extends ServiceEvent
S3ServiceMulti.listObjects(String, String[], String, long).
EVENT_IN_PROGRESS events include a List of S3ObjectsChunk objects
that contain information about the objects and common-prefixes for the
bucket listing operation. Each chunk object will contain a prefix identifying
the prefix value used by the listing operation that produced the chunk.
These objects are available via getChunkList().
| Modifier and Type | Field and Description |
|---|---|
private java.util.List |
chunkList |
EVENT_CANCELLED, EVENT_COMPLETED, EVENT_ERROR, EVENT_IGNORED_ERRORS, EVENT_IN_PROGRESS, EVENT_STARTED| Modifier | Constructor and Description |
|---|---|
private |
ListObjectsEvent(int eventCode,
java.lang.Object uniqueOperationId) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getChunkList() |
static ListObjectsEvent |
newCancelledEvent(java.lang.Object uniqueOperationId) |
static ListObjectsEvent |
newCompletedEvent(java.lang.Object uniqueOperationId) |
static ListObjectsEvent |
newErrorEvent(java.lang.Throwable t,
java.lang.Object uniqueOperationId) |
static ListObjectsEvent |
newIgnoredErrorsEvent(ThreadWatcher threadWatcher,
java.lang.Throwable[] ignoredErrors,
java.lang.Object uniqueOperationId) |
static ListObjectsEvent |
newInProgressEvent(ThreadWatcher threadWatcher,
java.util.List chunkList,
java.lang.Object uniqueOperationId) |
static ListObjectsEvent |
newStartedEvent(ThreadWatcher threadWatcher,
java.lang.Object uniqueOperationId) |
private void |
setChunkList(java.util.List chunkList) |
getThreadWatchergetErrorCause, getEventCode, getIgnoredErrors, getUniqueOperationId, setErrorCause, setIgnoredErrors, setThreadWatcher, toStringprivate ListObjectsEvent(int eventCode,
java.lang.Object uniqueOperationId)
public static ListObjectsEvent newErrorEvent(java.lang.Throwable t, java.lang.Object uniqueOperationId)
public static ListObjectsEvent newStartedEvent(ThreadWatcher threadWatcher, java.lang.Object uniqueOperationId)
public static ListObjectsEvent newInProgressEvent(ThreadWatcher threadWatcher, java.util.List chunkList, java.lang.Object uniqueOperationId)
public static ListObjectsEvent newCompletedEvent(java.lang.Object uniqueOperationId)
public static ListObjectsEvent newCancelledEvent(java.lang.Object uniqueOperationId)
public static ListObjectsEvent newIgnoredErrorsEvent(ThreadWatcher threadWatcher, java.lang.Throwable[] ignoredErrors, java.lang.Object uniqueOperationId)
private void setChunkList(java.util.List chunkList)
public java.util.List getChunkList()
throws java.lang.IllegalStateException
S3ObjectsChunks that have been generated since the
last progress event was fired.java.lang.IllegalStateException - listed objects are only available from EVENT_IN_PROGRESS events.