-
Improvement
-
Resolution: Done
-
None
-
(unspecified)
-
None
-
Operating System: All
Platform: All
Improvising Batching code :
A new concrete class(DefaultBatchHandler) should be written which will Implement "ResourceHandler" and provide the functionality of Resource Handler.
The current implementation requires modules to implement interface "ResourceHandler" for using Batching functionality, with the new implementation, this is not required. modules can register for batching passing the object of DefaultBatchHandler.
The below methods are exposed in class "ResourceBatchingManager" for the modules to use.
provide interfaces similar to databroker transaction interface.
public void put(String resourceType, InstanceIdentifier identifier, DataObject updatedData);
public void merge(String resourceType, InstanceIdentifier identifier, DataObject updatedData);
public void delete(String resourceType, InstanceIdentifier identifier);