QueueStorage class

A base class for enqueueing an Activity for later processing.

Methods

queueActivity(Partial<Activity>, number, number)

Enqueues an Activity for later processing. The visibility timeout specifies how long the message should be visible to Dequeue and Peek operations.

Method Details

queueActivity(Partial<Activity>, number, number)

Enqueues an Activity for later processing. The visibility timeout specifies how long the message should be visible to Dequeue and Peek operations.

function queueActivity(activity: Partial<Activity>, visibilityTimeout?: number, timeToLive?: number): Promise<string>

Parameters

activity

Partial<Activity>

The Activity to be queued for later processing.

visibilityTimeout

number

Visibility timeout in seconds. Optional with a default value of 0. Cannot be larger than 7 days.

timeToLive

number

Specifies the time-to-live interval for the message in seconds.

Returns

Promise<string>