Reference / Modules / client / ActiveProtection
Class: ActiveProtection
client.ActiveProtection
A State instance is a state in the "state machine" sense. It comes with some behavior and state transition methods. A state transition method returns an instance of the next state given the executed operation, which discards current object.
This class should be extended by client class. It provides method enabling the client class to query if it was already discarded or not as well as methods actually discarding the state.
Hierarchy
-
↳
ActiveProtection
Implements
Table of contents
Constructors
Properties
Accessors
Methods
- discard
- discardOnSuccess
- ensureCurrent
- finalizeOnSuccess
- getCurrentState
- getCurrentStateOrThrow
- isFullyReady
- refresh
- syncDiscardOnSuccess
- vaultState
- waitForFullyReady
Constructors
constructor
• new ActiveProtection(sharedState
): ActiveProtection
Parameters
Name | Type |
---|---|
sharedState | RecoverySharedState |
Returns
Overrides
Defined in
packages/client/src/Recovery.ts:607
Properties
sharedState
• Private
Readonly
sharedState: RecoverySharedState
Defined in
packages/client/src/Recovery.ts:612
Accessors
discarded
• get
discarded(): boolean
Returns
boolean
Description
True if this state was discarded