Skip to content

ReplicationEvents

Defined in: libs/runtime/src/typedblite-replicator.ts:55

What a continuous replication reports as it runs. All are optional.

Methods

Name Description
onActive()? The replication is receiving changes.
onChange()? A change was received and applied.
onFailed()? The replication failed.
onPaused()? The replication has caught up and is waiting for more.

optional onActive(): void

Defined in: libs/runtime/src/typedblite-replicator.ts:61

The replication is receiving changes.

void


optional onChange(applied): void

Defined in: libs/runtime/src/typedblite-replicator.ts:57

A change was received and applied. applied is the number of revisions that were new.

number

void


optional onFailed(error, classification): void

Defined in: libs/runtime/src/typedblite-replicator.ts:63

The replication failed. classification says whether it is worth waiting for another attempt.

Error

SyncErrorClass

void


optional onPaused(): void

Defined in: libs/runtime/src/typedblite-replicator.ts:59

The replication has caught up and is waiting for more. It is still running.

void

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.