Package io.atleon.aws.sqs
Class SqsReceiver
- java.lang.Object
-
- io.atleon.aws.sqs.SqsReceiver
-
public final class SqsReceiver extends Object
A low-level receiver ofSqsMessages. Received messages contain the raw String body payloads as received from requests to SQS. Each Subscription to Messages is backed by its ownSqsAsyncClientwhich is disposed/closed upon termination of the Subscription.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSqsReceiver.BatchRequestFailedException
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqsReceivercreate(SqsReceiverOptions options)Creates a reactive SQS receiver with the specified configuration options.Flux<SqsReceiverMessage>receiveManual(String queueUrl)ReceiveSqsMessages where each Message's deletion and visibility must be explicitly handled.
-
-
-
Method Detail
-
create
public static SqsReceiver create(SqsReceiverOptions options)
Creates a reactive SQS receiver with the specified configuration options.
-
receiveManual
public Flux<SqsReceiverMessage> receiveManual(String queueUrl)
ReceiveSqsMessages where each Message's deletion and visibility must be explicitly handled. If a received Message is not deleted or has its visibility managed before the visibility timeout lapses, the Message may be received again, and operations on the original Message (using its original receipt handle) may result in errors indicating the Message could not be found.- Parameters:
queueUrl- The URL of the Queue to receive messages from- Returns:
- Flux of inbound Messages whose visibility and deletion must be manually handled
-
-