Package org.jets3t.service.multi.s3
Class S3ServiceEventAdaptor
java.lang.Object
org.jets3t.service.multi.StorageServiceEventAdaptor
org.jets3t.service.multi.s3.S3ServiceEventAdaptor
- All Implemented Interfaces:
S3ServiceEventListener
,StorageServiceEventListener
public class S3ServiceEventAdaptor
extends StorageServiceEventAdaptor
implements S3ServiceEventListener
Simple implementation of
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.
- Author:
- James Murty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
event
(MultipartCompletesEvent event) void
event
(MultipartStartsEvent event) void
event
(MultipartUploadsEvent event) Methods inherited from class org.jets3t.service.multi.StorageServiceEventAdaptor
event, event, event, event, event, event, event, event, event, event, getErrorThrown, throwErrorIfPresent, wasErrorThrown
-
Constructor Details
-
S3ServiceEventAdaptor
public S3ServiceEventAdaptor()
-
-
Method Details
-
event
- Specified by:
event
in interfaceS3ServiceEventListener
-
event
- Specified by:
event
in interfaceS3ServiceEventListener
-
event
- Specified by:
event
in interfaceS3ServiceEventListener
-