/** * @return * the {@link StorageObject}s that were not retrieved before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public StorageObject[] getCancelledObjects() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return objects; }
/** * @return * the {@link StorageObject}s that have been retrieved since the last progress event was fired. * @throws IllegalStateException * completed objects are only available from EVENT_IN_PROGRESS events. */ public StorageObject[] getCompletedObjects() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Completed Objects are only available from EVENT_IN_PROGRESS events"); } return objects; }
/** * @return * the {@link StorageObject}s that have been retrieved since the last progress event was fired. * @throws IllegalStateException * completed objects are only available from EVENT_IN_PROGRESS events. */ public StorageObject[] getCompletedObjects() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Completed Objects are only available from EVENT_IN_PROGRESS events"); } return objects; }
/** * @return * the {@link StorageObject}s that were not retrieved before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public StorageObject[] getCancelledObjects() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return objects; }