Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FullEventProcessorOptions

Package version

A set of options to pass to the constructor of EventProcessor. You can specify

  • maxBatchSize: The max size of the batch of events passed each time to user code for processing.
  • maxWaitTimeInSeconds: The maximum amount of time to wait to build up the requested message count before passing the data to user code for processing. If not provided, it defaults to 60 seconds.

Example usage with default values:

{
    maxBatchSize: 1,
    maxWaitTimeInSeconds: 60
}
internal

Hierarchy

Index

Properties

Optional defaultEventPosition

defaultEventPosition: EventPosition

The event position to use when claiming a partition if not already initialized.

Defaults to EventPosition.earliest()

maxBatchSize

maxBatchSize: number

The max size of the batch of events passed each time to user code for processing.

maxWaitTimeInSeconds

maxWaitTimeInSeconds: number

The maximum amount of time to wait to build up the requested message count before passing the data to user code for processing. If not provided, it defaults to 60 seconds.

Optional partitionLoadBalancer

partitionLoadBalancer: PartitionLoadBalancer

A load balancer to use

Optional trackLastEnqueuedEventInfo

trackLastEnqueuedEventInfo: undefined | false | true
property

Indicates whether or not the consumer should request information on the last enqueued event on its associated partition, and track that information as events are received.

When information about the partition's last enqueued event is being tracked, each event received from the Event Hubs service will carry metadata about the partition that it otherwise would not. This results in a small amount of additional network bandwidth consumption that is generally a favorable trade-off when considered against periodically making requests for partition properties using the Event Hub client.

Generated using TypeDoc