Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OfflineQueue

Class implementing persistent operation queue.

This class is designed to be used by OfflineLink It provides these functionalities:

  • persisting operation queue in provided storage
  • updating client IDs with server IDs (explained below)

Hierarchy

  • OfflineQueue

Index

Constructors

constructor

Properties

queue

queue: OperationQueueEntry[] = []

Methods

enqueueOfflineChange

  • enqueueOfflineChange(operation: Operation, forward: NextLink): Observable<Object>
  • Enqueue offline change and wait for it to be sent to server when online. Every offline change is added to queue.

    Parameters

    • operation: Operation
    • forward: NextLink

    Returns Observable<Object>

forwardOperations

  • forwardOperations(): Promise<void>

persistItemWithQueue

Generated using TypeDoc