Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActionProcessor<ActionClass>

Type parameters

Hierarchy

  • ActionProcessor

Index

Constructors

constructor

Properties

action

action: ActionClass["name"]

actionStartTime

actionStartTime: number

actionStatus

actionStatus: string | Error

actionTemplate

actionTemplate: ActionClass

connection

connection: Connection

duration

duration: number

messageId

messageId: string | number

missingParams

missingParams: string[]

params

params: { action: string; apiVersion: string | number }

Type declaration

  • [key: string]: any
  • action: string
  • apiVersion: string | number

response

response: {}

Type declaration

  • [key: string]: any

session

session: any

toProcess

toProcess: boolean

toRender

toRender: boolean

validatorErrors

validatorErrors: (string | Error)[]

working

working: boolean

Methods

Private applyDefaultErrorLogLineFormat

  • applyDefaultErrorLogLineFormat(error: any): { errorFields: { error: string } }

Private completeAction

  • completeAction(status?: string | Error): Promise<ActionProcessor<ActionClass>>

getPendingActionCount

  • getPendingActionCount(): number

Private incrementPendingActions

  • incrementPendingActions(count?: number): void

Private incrementTotalActions

  • incrementTotalActions(count?: number): void

lockParams

  • lockParams(): void

Private logAndReportAction

  • logAndReportAction(error: any): void

Private postProcessAction

  • postProcessAction(): Promise<void>

Private preProcessAction

  • preProcessAction(): Promise<void>

Private prepareStringMethod

  • prepareStringMethod(method: string): Function

processAction

  • processAction(actionName?: string, apiVersion?: string | number): Promise<ActionProcessor<ActionClass>>

Private reduceParams

  • reduceParams(schemaKey?: string): void

Private runAction

Private validateParam

  • validateParam(props: any, params: any, key: any, schemaKey: any): Promise<void>

Private validateParams

  • validateParams(schemaKey?: string): Promise<void>

Generated using TypeDoc