Package com.adaptris.aws2.s3.retry
Class S3RetryStore
java.lang.Object
com.adaptris.aws2.s3.retry.S3RetryStore
- All Implemented Interfaces:
ComponentLifecycle,ComponentLifecycleExtension,RetryStore
@ComponentProfile(summary="Supporting implementation for using S3 as your failed message store",
tag="retry,amazon,s3",
since="4.3.0",
recommended=AmazonS3Connection.class)
public class S3RetryStore
extends Object
implements RetryStore
- Since:
- 4.3.0
In the adapter configuration file this class is aliased as amazon-s3-retry-store which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(String acknowledgeId) buildForRetry(String msgId, Map<String, String> metadata, AdaptrisMessageFactory factory) voidclose()booleanvoid@NonNull AdaptrisConnectionSet the connection to use to connect to S3.getMetadata(String msgId) getStackTrace(String msgId) voidinit()voidmakeConnection(AdaptrisConnection connection) voidprepare()report(boolean includeErrorMessage) voidvoidsetConnection(@NonNull AdaptrisConnection connection) Set the connection to use to connect to S3.voidvoidstart()voidstop()voidupdateRetryCount(String messageId) withBucket(String s) withPrefix(String s) voidwrite(AdaptrisMessage msg) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.adaptris.core.http.jetty.retry.RetryStore
buildForRetry, buildForRetry, getStacktraceFirstLine
-
Field Details
-
PAYLOAD_FILE_NAME
- See Also:
-
METADATA_FILE_NAME
- See Also:
-
STACKTRACE_FILENAME
- See Also:
-
-
Constructor Details
-
S3RetryStore
public S3RetryStore()
-
-
Method Details
-
prepare
- Specified by:
preparein interfaceComponentLifecycleExtension- Specified by:
preparein interfaceRetryStore- Throws:
CoreException
-
init
- Specified by:
initin interfaceComponentLifecycle- Throws:
CoreException
-
start
- Specified by:
startin interfaceComponentLifecycle- Throws:
CoreException
-
stop
public void stop()- Specified by:
stopin interfaceComponentLifecycle
-
close
public void close()- Specified by:
closein interfaceComponentLifecycle
-
withConnection
-
withPrefix
-
withBucket
-
report
- Specified by:
reportin interfaceRetryStore- Throws:
InterlokException
-
delete
- Specified by:
deletein interfaceRetryStore- Throws:
InterlokException
-
write
- Specified by:
writein interfaceRetryStore- Throws:
InterlokException
-
buildForRetry
public AdaptrisMessage buildForRetry(String msgId, Map<String, String> metadata, AdaptrisMessageFactory factory) throws InterlokException- Specified by:
buildForRetryin interfaceRetryStore- Throws:
InterlokException
-
getMetadata
- Specified by:
getMetadatain interfaceRetryStore- Throws:
InterlokException
-
getStackTrace
- Specified by:
getStackTracein interfaceRetryStore- Throws:
InterlokException
-
acknowledge
- Specified by:
acknowledgein interfaceRetryStore- Throws:
InterlokException
-
deleteAcknowledged
- Specified by:
deleteAcknowledgedin interfaceRetryStore- Throws:
InterlokException
-
obtainExpiredMessages
- Specified by:
obtainExpiredMessagesin interfaceRetryStore- Throws:
InterlokException
-
updateRetryCount
- Specified by:
updateRetryCountin interfaceRetryStore- Throws:
InterlokException
-
obtainMessagesToRetry
- Specified by:
obtainMessagesToRetryin interfaceRetryStore- Throws:
InterlokException
-
makeConnection
- Specified by:
makeConnectionin interfaceRetryStore
-
getConnection
Set the connection to use to connect to S3. -
setConnection
Set the connection to use to connect to S3. -
getBucket
-
setBucket
-
getPrefix
-
setPrefix
-