LocalSynchronizer
The LocalSynchronizer
interface represents a Synchronizer
that lets you synchronize MergeableStore
data to and from other MergeableStore
instances on the same local machine.
You should use the createLocalSynchronizer
function to create a LocalSynchronizer
object.
Having
no specialized methods, it is a synonym for the Synchronizer
interface. This is also something of a showcase Synchronizer
, rather than something you would use in a production environment. If you do need to synchronize two in-memory MergeableStore
instances, you may prefer to use the merge function on either one of them instead of going to the effort of setting up this Synchronizer
.
Since
v5.0.0
Getter methods
This is the collection of getter methods within the LocalSynchronizer
interface. There is only one method, getStore
.
Listener methods
This is the collection of listener methods within the LocalSynchronizer
interface. There are only two listener methods, addStatusListener
and delListener
.
Lifecycle methods
This is the collection of lifecycle methods within the LocalSynchronizer
interface. There are only three lifecycle methods, destroy
, getStatus
, and schedule
.
Load methods
This is the collection of load methods within the LocalSynchronizer
interface. There are 4 load methods in total.
Save methods
This is the collection of save methods within the LocalSynchronizer
interface. There are 4 save methods in total.
Synchronization methods
This is the collection of synchronization methods within the LocalSynchronizer
interface. There are only three synchronization methods, getSynchronizerStats
, startSync
, and stopSync
.
Development methods
This is the collection of development methods within the LocalSynchronizer
interface. There is only one method, getStats
.