Class SQSExtendedConsumer

Constructors

Accessors

Methods

Constructors

Accessors

  • get status(): { isPolling: boolean; isRunning: boolean }

    Returns the current status of the consumer. This includes whether it is running or currently polling.

    Returns { isPolling: boolean; isRunning: boolean }

Methods

  • Access to event emitter methods. Use this to attach event handlers to the consumer.

    Parameters

    • event: keyof Events
    • listener: (...args: any[]) => void

    Returns SQSExtendedConsumer

    consumer.on('message_received', (message) => {
    console.log(message);
    });
  • Stop polling the queue for messages.

    Parameters

    • Optionaloptions: StopOptions

      Stop options (e.g. { abort: true } to abort current requests)

    Returns void

  • Validates and then updates the provided option to the provided value.

    Parameters

    • option: UpdatableOptions

      The option to validate and then update

    • value: number

      The value to set the provided option to

    Returns void