Class DefaultBatchHandler
- java.lang.Object
-
- org.opendaylight.genius.utils.batching.DefaultBatchHandler
-
- All Implemented Interfaces:
ResourceHandler
public class DefaultBatchHandler extends java.lang.Object implements ResourceHandler
-
-
Constructor Summary
Constructors Constructor Description DefaultBatchHandler(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType dataStoreType, java.lang.Integer batchSize, java.lang.Integer batchInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
create(org.opendaylight.controller.md.sal.binding.api.WriteTransaction tx, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object data, java.util.List<SubTransaction> transactionObjects)
void
delete(org.opendaylight.controller.md.sal.binding.api.WriteTransaction tx, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object data, java.util.List<SubTransaction> transactionObjects)
int
getBatchInterval()
int
getBatchSize()
org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType
getDatastoreType()
org.opendaylight.controller.md.sal.binding.api.DataBroker
getResourceBroker()
void
update(org.opendaylight.controller.md.sal.binding.api.WriteTransaction tx, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object original, java.lang.Object update, java.util.List<SubTransaction> transactionObjects)
-
-
-
Method Detail
-
update
public void update(org.opendaylight.controller.md.sal.binding.api.WriteTransaction tx, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object original, java.lang.Object update, java.util.List<SubTransaction> transactionObjects)
- Specified by:
update
in interfaceResourceHandler
-
create
public void create(org.opendaylight.controller.md.sal.binding.api.WriteTransaction tx, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object data, java.util.List<SubTransaction> transactionObjects)
- Specified by:
create
in interfaceResourceHandler
-
delete
public void delete(org.opendaylight.controller.md.sal.binding.api.WriteTransaction tx, org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object data, java.util.List<SubTransaction> transactionObjects)
- Specified by:
delete
in interfaceResourceHandler
-
getResourceBroker
public org.opendaylight.controller.md.sal.binding.api.DataBroker getResourceBroker()
- Specified by:
getResourceBroker
in interfaceResourceHandler
-
getBatchSize
public int getBatchSize()
- Specified by:
getBatchSize
in interfaceResourceHandler
-
getBatchInterval
public int getBatchInterval()
- Specified by:
getBatchInterval
in interfaceResourceHandler
-
getDatastoreType
public org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType getDatastoreType()
- Specified by:
getDatastoreType
in interfaceResourceHandler
-
-