Package org.jets3t.service.multithread
Class S3ServiceEventAdaptor
java.lang.Object
org.jets3t.service.multithread.S3ServiceEventAdaptor
- All Implemented Interfaces:
S3ServiceEventListener
Simple implementation of
S3ServiceEventListener to listen for events produced by
S3ServiceMulti.
By default this adaptor does nothing but store the first Error event it comes across, if any,
and make it available through getErrorThrown().
The behaviour of this class can be specialised by over-riding the appropriate s3ServiceEventPerformed 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 TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidboolean
-
Constructor Details
-
S3ServiceEventAdaptor
public S3ServiceEventAdaptor()
-
-
Method Details
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
s3ServiceEventPerformed
- Specified by:
s3ServiceEventPerformedin interfaceS3ServiceEventListener
-
wasErrorThrown
public boolean wasErrorThrown()- Returns:
- true if an event has resulted in an exception.
-
getErrorThrown
- Returns:
- the first error thrown by an event, or null if no error has been thrown.
-