Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Consumer

Implements

  • QueueConsumer

Index

Constructors

  • new Consumer(kernel: Kernel, pool: Pool, session: string): Consumer

Properties

graphileRunner: null | Runner = null
messagesBeingHandled: number = 0

Methods

  • cancel(): Promise<void>
  • initializeWithEventHandler(logContext: LogContext, onMessageEventHandler: OnMessageEventHandler): Promise<void>
  • Parameters

    • logContext: LogContext
    • onMessageEventHandler: OnMessageEventHandler

    Returns Promise<void>

  • summary

    Post execution results

    function

    Parameters

    • _actor: string
    • logContext: LogContext

      log context

    • actionRequest: ActionRequestContract

      action request

    • results: PostResults

      action results

    Returns Promise<ExecuteContract>

    execute event card

  • run(logContext: LogContext, onMessageEventHandler: OnMessageEventHandler, retries?: number): Promise<boolean>
  • Parameters

    • logContext: LogContext
    • onMessageEventHandler: OnMessageEventHandler
    • retries: number = RUN_RETRIES

    Returns Promise<boolean>

Generated using TypeDoc