ExpiringTaskCompletionPolicy

Hierarchy

  • ExpiringTaskCompletionPolicy

Index

Constructors

Methods

Constructors

constructor

+ new ExpiringTaskCompletionPolicy(expireIn: number): ExpiringTaskCompletionPolicy

Creates an instance of ExpiringTaskCompletionPolicy.

Parameters:

NameTypeDefaultDescription
expireInnumber1 60 60 * 1000The amount of time in milliseconds after which Task will expire.

Returns: ExpiringTaskCompletionPolicy

Methods

cancel

cancel(taskList: TaskList, taskId: Guid): void

Cancels expiring policy for Task in TaskList.

Parameters:

NameTypeDescription
taskListTaskListTaskList instance on which policy is canceled.
taskIdGuidIdentifier of a Task which policy should be canceled.

Returns: void


implement

implement(taskList: TaskList, taskId: Guid): void

Applies expiring policy to created Task in TaskList.

Parameters:

NameTypeDescription
taskListTaskListTaskList instance on which policy is applied.
taskIdGuidTask identifier to which policy should be applied.

Returns: void


setExpirationDuration

setExpirationDuration(expireIn: number): void

Sets expiration duration for policy.

Parameters:

NameTypeDescription
expireInnumberThe amount of time in milliseconds after which Task will expire.

Returns: void