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: ActionsStatus

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
  • Optional action?: string
  • Optional 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

applyDefaultErrorLogLineFormat

  • applyDefaultErrorLogLineFormat(error: ErrnoException): { errorFields: { error: string }; logLevel: ActionheroLogLevel }

Private completeAction

  • completeAction(status: ActionsStatus, _error?: ErrnoException): Promise<ActionProcessor<ActionClass>>

getPendingActionCount

  • getPendingActionCount(): number

Private incrementPendingActions

  • incrementPendingActions(count?: number): void

Private incrementTotalActions

  • incrementTotalActions(count?: number): void

lockParams

  • lockParams(): void

Private logAndReportAction

  • logAndReportAction(status: ActionsStatus, error: ErrnoException): 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: Input, params: { action?: string; apiVersion?: string | number }, key: string, schemaKey: string): Promise<void>
  • Parameters

    • props: Input
    • params: { action?: string; apiVersion?: string | number }
      • [key: string]: any
      • Optional action?: string
      • Optional apiVersion?: string | number
    • key: string
    • schemaKey: string

    Returns Promise<void>

Private validateParams

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

Generated using TypeDoc