Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BufferedEventEmitterOptions

Options to configure the EventEmiter

Hierarchy

  • BufferedEventEmitterOptions

Index

Properties

Properties

Optional maintenanceChance

maintenanceChance: number

Every call to some methods will have a chance to run the maintenance, witch is the process of remove expired buffers not flushed. This number define the chance of this process happen on a method call (percentual); Example: 10 => 10% chance of running maintenance

Optional ttl

ttl: number

TimeToLive: Time in seconds that the buffer can exists without activity. After this period it is't valid anymore and can eventually will be removed.

Example: 10

Generated using TypeDoc