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

    Constructors
    Constructor
    Description
    SqsMessageQueueReceiverEndpoint(String channelName, de.otto.synapse.endpoint.MessageInterceptorRegistry interceptorRegistry, software.amazon.awssdk.services.sqs.SqsAsyncClient sqsAsyncClient, ExecutorService executorService, org.springframework.context.ApplicationEventPublisher eventPublisher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Stops consumption of messages and shuts down the MessageQueueReceiverEndpoint.

    Methods inherited from class de.otto.synapse.endpoint.receiver.AbstractMessageReceiverEndpoint

    getEndpointType, getMessageDispatcher, publishEvent, register

    Methods inherited from class de.otto.synapse.endpoint.AbstractMessageEndpoint

    getChannelName, getInterceptorChain, intercept

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.otto.synapse.endpoint.MessageEndpoint

    getChannelName, getEndpointType, getInterceptorChain, intercept

    Methods 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

      public CompletableFuture<Void> consume()
      Specified by:
      consume in interface de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint
    • stop

      public void stop()
      Stops consumption of messages and shuts down the MessageQueueReceiverEndpoint.
      Specified by:
      stop in interface de.otto.synapse.endpoint.receiver.MessageQueueReceiverEndpoint