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 ofS3ServiceEventListenerto listen for events produced byThreadedS3ServiceandThreadedStorageService.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 Constructor Description S3ServiceEventAdaptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevent(MultipartCompletesEvent event)voidevent(MultipartStartsEvent event)voidevent(MultipartUploadsEvent event)-
Methods inherited from class org.jets3t.service.multi.StorageServiceEventAdaptor
event, event, event, event, event, event, event, event, event, event, getErrorThrown, throwErrorIfPresent, wasErrorThrown
-
-
-
-
Method Detail
-
event
public void event(MultipartUploadsEvent event)
- Specified by:
eventin interfaceS3ServiceEventListener
-
event
public void event(MultipartStartsEvent event)
- Specified by:
eventin interfaceS3ServiceEventListener
-
event
public void event(MultipartCompletesEvent event)
- Specified by:
eventin interfaceS3ServiceEventListener
-
-