Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeepAliveToken

Hierarchy

  • EventEmitter
    • KeepAliveToken

Implements

  • EventEmitter

Index

Constructors

constructor

  • new KeepAliveToken(handler: any, lease: string, interval?: number): KeepAliveToken

Properties

handler

handler: any

intervalId

intervalId: any

lease

lease: string

Static EventEmitter

EventEmitter: EventEmitter

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: string, listener: Function)
  • Parameters

    • event: string
    • listener: Function

cancel

  • cancel(): void

emit

  • emit(event: string, ...args: any[]): boolean
  • Parameters

    • event: string
    • Rest ...args: any[]

    Returns boolean

getMaxListeners

  • getMaxListeners(): number
  • Returns number

listenerCount

  • listenerCount(type: string): number
  • Parameters

    • type: string

    Returns number

listeners

  • listeners(event: string): Function[]
  • Parameters

    • event: string

    Returns Function[]

on

  • on(event: string, listener: Function)
  • Parameters

    • event: string
    • listener: Function

once

  • once(event: string, listener: Function)
  • Parameters

    • event: string
    • listener: Function

removeAllListeners

  • removeAllListeners(event?: string)
  • Parameters

    • Optional event: string

removeListener

  • removeListener(event: string, listener: Function)
  • Parameters

    • event: string
    • listener: Function

setMaxListeners

  • setMaxListeners(n: number)
  • Parameters

    • n: number

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string): number
  • Parameters

    • emitter: EventEmitter
    • event: string

    Returns number

Generated using TypeDoc