Write Map CRUDRepo
MutableMap-based WriteMapCRUDRepo. All internal operations will be locked with locker (mostly with SmartRWLocker.withWriteLock)
Warning: It is not recommended to use constructor with both MutableMap and SmartRWLocker. Besides, in case you are using your own MutableMap as a map you should be careful with operations on this map
Inheritors
Constructors
Properties
Flow that emits the ID of each deleted object after a successful deleteById call.
Flow that emits each newly created object after a successful create call.
Mirrors WriteCRUDRepo.deletedObjectsIdsFlow under the name onDeletedObjectsIds for consistency with KV repos naming.
Mirrors WriteCRUDRepo.newObjectsFlow under the name onNewObjects for consistency with KV repos naming.
Mirrors WriteCRUDRepo.updatedObjectsFlow under the name onUpdatedObjects for consistency with KV repos naming.
Flow that emits each updated object after a successful update call.
Functions
Creates new objects from the given list of input values. Successfully created objects must be emitted via newObjectsFlow.
Vararg overload of WriteCRUDRepo.create for convenience.
Deletes objects with the given list of IDs. Successfully deleted IDs must be emitted via deletedObjectsIdsFlow.
Vararg overload of WriteCRUDRepo.deleteById for convenience.
Batch-updates objects using the given list of ID-value pairs. Successfully updated objects must be emitted via updatedObjectsFlow.
Updates the object identified by id with the given value. Successfully updated object must be emitted via updatedObjectsFlow.
Vararg overload of WriteCRUDRepo.update for convenience.