Skip to main content

OfflineActionQueue class

OfflineActionQueue class manages a queue for offline actions.

This class provides the following functionalities:

  • initialize : initializes the queue by registering adapters and opening the queue.
  • registerAdapters : registers the required Hive adapters.
  • openQueue : opens the Hive box for the offline action queue.
  • addAction : adds an action to the queue with a TTL.
  • getActions : retrieves all valid actions from the queue.
  • removeAction : removes a specific action from the queue.
  • clearActions : clears all actions from the queue.
  • removeExpiredActions : removes expired actions from the queue.

Constructors

OfflineActionQueue

:

Properties

[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::

[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::

Methods

[addAction][([[CachedUserAction] action]) [→ Future[<[bool]>]] ] : Adds an action to the queue with a TTL.

[clearActions][ [→ Future[<[bool]>]] ] : Clears all actions from the queue.

[getActions][ [→ List[<[CachedUserAction]>]] ] : Retrieves all valid actions from the queue.

initialize [→ void ] : Initializes the queue by registering adapters and opening the queue.

[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::

openQueue [→ void ] : Opens the Hive box for the offline action queue.

[removeAction]([[dynamic key]) [→ Future[<[bool]>]] ] : Removes a specific action from the queue.

[removeExpiredActions][ [→ Future[<[bool]>]] ] : Removes expired actions from the queue.

[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::

Operators

[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::

Constants

[boxName] [→ const String] : Offline Action Queue box name.

  1. talawa
  2. offline_action_queue
  3. OfflineActionQueue class
offline_action_queue library