Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CacheDuplexEndPoint

Hierarchy

Implements

Index

Properties

cacheMap

cacheMap: Map<string, CommonCache> = new Map()

Protected config

config: object

Type declaration

debug

debug: any

group

group: string

indicators

indicators: Array<IIndicator> = []

logger

logger: Console = console

Static DEFAULT_CACHE_SIZE

DEFAULT_CACHE_SIZE: number = 100

Methods

destory

  • destory(callback?: any): void

initialize

  • initialize(): void

invoke

  • invoke(args?: object): Promise<any>
  • Parameters

    • Default value args: object = {by: 'size',value: 0}
      • Optional appName?: string
      • Optional by?: "size" | string
      • Optional limit?: number
      • Optional offset?: number
      • Optional order?: "ASC" | "DESC"
      • Optional value?: number

    Returns Promise<any>

processQueryResults

  • processQueryResults(results: Array<IndicatorResult>, appName?: string, args?: any): any

processReporter

  • processReporter(data: any, reply?: any): void

Protected registerIndicator

  • registerIndicator(data: any, reply: any, client: any): void

Protected removeClient

  • removeClient(indicatorProxy: any): void

setConfig

  • setConfig(config: any): void

setLogger

  • setLogger(logger: any): void