Class SqsMessageQueueReceiverEndpoint
java.lang.Object
de.otto.synapse.endpoint.AbstractMessageEndpoint
de.otto.synapse.endpoint.receiver.AbstractMessageReceiverEndpoint
de.otto.synapse.endpoint.receiver.sqs.SqsMessageQueueReceiverEndpoint
- All Implemented Interfaces:
de.otto.synapse.endpoint.MessageEndpoint,de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint,de.otto.synapse.endpoint.receiver.MessageReceiverEndpoint
public class SqsMessageQueueReceiverEndpoint
extends de.otto.synapse.endpoint.receiver.AbstractMessageReceiverEndpoint
implements de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint
-
Constructor Summary
ConstructorsConstructorDescriptionSqsMessageQueueReceiverEndpoint(String channelName, de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry, software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient, ExecutorService executorService, org.springframework.context.ApplicationEventPublisher eventPublisher) -
Method Summary
Methods inherited from class de.otto.synapse.endpoint.receiver.AbstractMessageReceiverEndpoint
getEndpointType, getMessageDispatcher, publishEvent, registerMethods inherited from class de.otto.synapse.endpoint.AbstractMessageEndpoint
getChannelName, getInterceptorChain, interceptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.otto.synapse.endpoint.MessageEndpoint
getChannelName, getEndpointType, getInterceptorChain, interceptMethods inherited from interface de.otto.synapse.endpoint.receiver.MessageReceiverEndpoint
getMessageDispatcher, register
-
Constructor Details
-
SqsMessageQueueReceiverEndpoint
public SqsMessageQueueReceiverEndpoint(@Nonnull String channelName, @Nonnull de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry, @Nonnull software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient, @Nonnull ExecutorService executorService, @Nullable org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
consume
- Specified by:
consumein interfacede.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint
-
stop
public void stop()Stops consumption of messages and shuts down theMessageQueueReceiverEndpoint.- Specified by:
stopin interfacede.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint
-