Package io.awspring.cloud.sqs.operations
Interface SqsOperations
- All Superinterfaces:
MessagingOperations
- All Known Implementing Classes:
SqsTemplate
Sqs-specific synchronous messaging operations for Standard and Fifo queues.
- Since:
- 3.0
- Author:
- Tomaz Fernandes
-
Method Summary
Modifier and TypeMethodDescriptionreceive(Consumer<SqsReceiveOptions> from) Receive a message usingSqsReceiveOptions.receive(Consumer<SqsReceiveOptions> from, Class<T> payloadClass) Receive a message usingSqsReceiveOptionsand convert the payload to the provided class.Collection<Message<?>>receiveMany(Consumer<SqsReceiveOptions> from) Receive a batch of messages usingSqsReceiveOptions.<T> Collection<Message<T>>receiveMany(Consumer<SqsReceiveOptions> from, Class<T> payloadClass) Receive a batch of messages usingSqsReceiveOptionsand convert the payloads to the provided class.<T> SendResult<T>send(Consumer<SqsSendOptions<T>> to) Send a message using theSqsSendOptionsoptions.Methods inherited from interface io.awspring.cloud.sqs.operations.MessagingOperations
receive, receive, receiveMany, receiveMany, send, send, send, sendMany
-
Method Details
-
send
Send a message using theSqsSendOptionsoptions.- Parameters:
to- aSqsSendOptionsconsumer.- Returns:
- The
UUIDof the message.
-
receive
Receive a message usingSqsReceiveOptions.- Parameters:
from- aSqsReceiveOptionsconsumer.- Returns:
- The message, or an empty collection if none is returned.
-
receive
Receive a message usingSqsReceiveOptionsand convert the payload to the provided class.- Parameters:
from- aSqsReceiveOptionsconsumer.payloadClass- to class to convert the payload to.- Returns:
- The message, or an empty collection if none is returned.
-
receiveMany
Receive a batch of messages usingSqsReceiveOptions.- Parameters:
from- aSqsReceiveOptionsconsumer.- Returns:
- The message, or an empty collection if none is returned.
-
receiveMany
Receive a batch of messages usingSqsReceiveOptionsand convert the payloads to the provided class.- Parameters:
from- aSqsReceiveOptionsconsumer.- Returns:
- The message, or an empty collection if none is returned.
-