Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClientTaskQueueService

A ClientTask describes a set of API actions the client has been requested to perform, usually encrypting some data with their private keys.

Hierarchy

  • Service<ClientTaskQueueApi>
    • ClientTaskQueueService

Index

Constructors

constructor

Properties

Protected environment

environment: Environment

Protected keystoreAPIFactory

keystoreAPIFactory: KeystoreAPIFactory

Protected logger

logger: IFullLogger

Protected vaultAPIFactory

vaultAPIFactory: VaultAPIFactory

Methods

countOutstandingTasks

execute

  • Execute the given ClientTasks, updating their state in the API. Currently, the only implemented task is 'update_item_share'.

    ClientTask state is set to 'in_progress' once execution begins. Any tasks with state 'in_progress' or 'done' will raise an exception. Tasks with state 'failed' will be retried.

    No tasks are initiated if any one of the tasks is unrecognized or cannot be started.

    Parameters

    Returns Promise<IClientTaskExecResult>

getAPI

list

listAll

  • listAll(credentials: IVaultToken, change_state?: boolean, states?: ClientTaskState[], target_id?: string): Promise<ClientTask[]>

setLogger

  • setLogger(logger: Logger): void

Generated using TypeDoc