# Interface: CollectorOptions

Options to be applied to the collector.

## Extended by

- [`AwaitMessagesOptions`](/reference/structures/Collector/interfaces/AwaitMessagesOptions.md)

## Properties

### dispose?

> `optional` **dispose**: `boolean`

Whether to dispose data when it's deleted

***

### idle?

> `optional` **idle**: `number`

Max time allowed idle

***

### max?

> `optional` **max**: `number`

The maximum amount of items to collect

***

### maxProcessed?

> `optional` **maxProcessed**: `number`

The maximum amount of items to process

***

### time?

> `optional` **time**: `number`

Max time to wait for items in milliseconds
