Options
All
  • Public
  • Public/Protected
  • All
Menu

GetNextEventProvider to perform getNextEvent polling

Hierarchy

  • GetNextEventProvider

Index

Constructors

Properties

agentSession: ACDSessionManager
baseUri: string = ''
getNextEventAdapter: CXoneGetNextAdapter = ...
getNextPollingWorker: any
logger: Logger = ...
utilService: HttpUtilService = ...

Accessors

  • The static method that controls the access to the singleton instance.

    example
    const getNextEventProvider = GetNextEventProvider.instance();
    

    Returns GetNextEventProvider

Methods

  • getNextEvents(retryOptions?: RetryOptions, sessionId?: string): void
  • Calls get-next-event api on worker thread

    example
    this.getNextEvents(retryOptions, '12345');
    

    Parameters

    • Optional retryOptions: RetryOptions
    • Optional sessionId: string

    Returns void

  • initUtilWorker(): void
  • Use to initializing the util worker and will return the method inside the worker

    example
    this.initUtilWorker();
    

    Returns void

  • Captures data returned from get-next-event api

    Parameters

    Returns void

  • Captures data returned from get-next-event api after successful retry

    Parameters

    Returns void

  • postNetworkFailure(event: any): void
  • example

    -This is used to post message to other tab in case of network error

    Parameters

    • event: any

    Returns void

  • startGetNextEvents(sessionId?: string): void
  • Starts GetNextEvents for specified agent session

    example
    this.startGetNextEvents();
    

    Parameters

    • Optional sessionId: string

    Returns void

  • terminateUtilWorker(): void
  • Use to terminate the util worker instance

    example
    this.terminateUtilWorker();
    

    Returns void

Generated using TypeDoc