public class S3ServiceEventAdaptor extends java.lang.Object implements S3ServiceEventListener
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.
Constructor and Description |
---|
S3ServiceEventAdaptor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getErrorThrown() |
void |
s3ServiceEventPerformed(CopyObjectsEvent event) |
void |
s3ServiceEventPerformed(CreateBucketsEvent event) |
void |
s3ServiceEventPerformed(CreateObjectsEvent event) |
void |
s3ServiceEventPerformed(DeleteObjectsEvent event) |
void |
s3ServiceEventPerformed(DeleteVersionedObjectsEvent event) |
void |
s3ServiceEventPerformed(DownloadObjectsEvent event) |
void |
s3ServiceEventPerformed(GetObjectHeadsEvent event) |
void |
s3ServiceEventPerformed(GetObjectsEvent event) |
void |
s3ServiceEventPerformed(ListObjectsEvent event) |
void |
s3ServiceEventPerformed(LookupACLEvent event) |
void |
s3ServiceEventPerformed(UpdateACLEvent event) |
protected void |
storeThrowable(ServiceEvent event) |
boolean |
wasErrorThrown() |
public void s3ServiceEventPerformed(ListObjectsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(CreateObjectsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(CopyObjectsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(CreateBucketsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(DeleteObjectsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(DeleteVersionedObjectsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(GetObjectsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(GetObjectHeadsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(LookupACLEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(UpdateACLEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
public void s3ServiceEventPerformed(DownloadObjectsEvent event)
s3ServiceEventPerformed
in interface S3ServiceEventListener
protected void storeThrowable(ServiceEvent event)
public boolean wasErrorThrown()
public java.lang.Throwable getErrorThrown()