public class SqsMessageQueueReceiverEndpoint
extends de.otto.synapse.endpoint.receiver.AbstractMessageReceiverEndpoint
implements de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint
| Constructor and Description |
|---|
SqsMessageQueueReceiverEndpoint(java.lang.String channelName,
de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry,
software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient,
java.util.concurrent.ExecutorService executorService,
org.springframework.context.ApplicationEventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
consume() |
void |
stop()
Stops consumption of messages and shuts down the
MessageQueueReceiverEndpoint. |
getEndpointType, getMessageDispatcher, publishEvent, registergetChannelName, getInterceptorChain, interceptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic SqsMessageQueueReceiverEndpoint(@Nonnull
java.lang.String channelName,
@Nonnull
de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry,
@Nonnull
software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient,
@Nonnull
java.util.concurrent.ExecutorService executorService,
@Nullable
org.springframework.context.ApplicationEventPublisher eventPublisher)
public java.util.concurrent.CompletableFuture<java.lang.Void> consume()
consume in interface de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpointpublic void stop()
MessageQueueReceiverEndpoint.stop in interface de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint