public final class ListObjectsEvent extends ServiceEvent
ThreadedStorageService.listObjects(String, String[], String, long)
.
EVENT_IN_PROGRESS events include a List of StorageObjectsChunk
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()
.
EVENT_CANCELLED, EVENT_COMPLETED, EVENT_ERROR, EVENT_IGNORED_ERRORS, EVENT_IN_PROGRESS, EVENT_STARTED
Modifier and Type | Method and Description |
---|---|
List<StorageObjectsChunk> |
getChunkList() |
static ListObjectsEvent |
newCancelledEvent(Object uniqueOperationId) |
static ListObjectsEvent |
newCompletedEvent(Object uniqueOperationId) |
static ListObjectsEvent |
newErrorEvent(Throwable t,
Object uniqueOperationId) |
static ListObjectsEvent |
newIgnoredErrorsEvent(ThreadWatcher threadWatcher,
Throwable[] ignoredErrors,
Object uniqueOperationId) |
static ListObjectsEvent |
newInProgressEvent(ThreadWatcher threadWatcher,
List<StorageObjectsChunk> chunkList,
Object uniqueOperationId) |
static ListObjectsEvent |
newStartedEvent(ThreadWatcher threadWatcher,
Object uniqueOperationId) |
getErrorCause, getEventCode, getIgnoredErrors, getThreadWatcher, getUniqueOperationId, setErrorCause, setIgnoredErrors, setThreadWatcher, toString
public static ListObjectsEvent newErrorEvent(Throwable t, Object uniqueOperationId)
public static ListObjectsEvent newStartedEvent(ThreadWatcher threadWatcher, Object uniqueOperationId)
public static ListObjectsEvent newInProgressEvent(ThreadWatcher threadWatcher, List<StorageObjectsChunk> chunkList, Object uniqueOperationId)
public static ListObjectsEvent newCompletedEvent(Object uniqueOperationId)
public static ListObjectsEvent newCancelledEvent(Object uniqueOperationId)
public static ListObjectsEvent newIgnoredErrorsEvent(ThreadWatcher threadWatcher, Throwable[] ignoredErrors, Object uniqueOperationId)
public List<StorageObjectsChunk> getChunkList() throws IllegalStateException
StorageObjectsChunk
s that have been generated since the
last progress event was fired.IllegalStateException
- listed objects are only available from EVENT_IN_PROGRESS events.Copyright © 2006–2018. All rights reserved.