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 usingSqsReceiveOptions
and 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 usingSqsReceiveOptions
and convert the payloads to the provided class.<T> SendResult<T>
send
(Consumer<SqsSendOptions<T>> to) Send a message using theSqsSendOptions
options.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 theSqsSendOptions
options.- Parameters:
to
- aSqsSendOptions
consumer.- Returns:
- The
UUID
of the message.
-
receive
Receive a message usingSqsReceiveOptions
.- Parameters:
from
- aSqsReceiveOptions
consumer.- Returns:
- The message, or an empty collection if none is returned.
-
receive
Receive a message usingSqsReceiveOptions
and convert the payload to the provided class.- Parameters:
from
- aSqsReceiveOptions
consumer.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
- aSqsReceiveOptions
consumer.- Returns:
- The message, or an empty collection if none is returned.
-
receiveMany
Receive a batch of messages usingSqsReceiveOptions
and convert the payloads to the provided class.- Parameters:
from
- aSqsReceiveOptions
consumer.- Returns:
- The message, or an empty collection if none is returned.
-