S3ServiceEventListener
, StorageServiceEventListener
public class S3ServiceEventAdaptor extends StorageServiceEventAdaptor implements S3ServiceEventListener
S3ServiceEventListener
to listen for events produced by
ThreadedS3Service
and ThreadedStorageService
.
By default this adaptor does nothing but store the first Error event it comes across, if any,
and make it available through StorageServiceEventAdaptor.getErrorThrown()
.
The behaviour of this class can be specialised by over-riding the appropriate event methods, though always be sure to call the super version of these methods if you are relying on the default error-trapping functions of this class.
Constructor | Description |
---|---|
S3ServiceEventAdaptor() |
Modifier and Type | Method | Description |
---|---|---|
void |
event(MultipartCompletesEvent event) |
|
void |
event(MultipartStartsEvent event) |
|
void |
event(MultipartUploadsEvent event) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
event, event, event, event, event, event, event, event, event, event, getErrorThrown, throwErrorIfPresent, wasErrorThrown
public void event(MultipartUploadsEvent event)
event
in interface S3ServiceEventListener
public void event(MultipartStartsEvent event)
event
in interface S3ServiceEventListener
public void event(MultipartCompletesEvent event)
event
in interface S3ServiceEventListener