SyncSecondary class
A class to manage all the server calls. SyncSecondary makes sure that server calls are not interfering with each other.
callSyncSecondary syncs to secondary or calls notifyAll
based on _syncOperation
.
Constructors
- SyncSecondary.new()
-
factory
Properties
Methods
-
callSyncSecondary(
SyncOperation _syncOperation, {AtKey? atKey, String? notification, OperationEnum? operation, bool isDedicated = MixedConstants.isDedicated}) → Future< void> -
Called to sync with secondary
_syncOperation
either sync to secondary or notifyAllatKey
,notification
,operation
needed for notifyAll -
completePrioritySync(
String _response, {Function? afterSync}) → void -
Called to sync in priority
afterSync
called after sync is complete_response
, passed as a parameter toafterSync
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited