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.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.common.api.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.mdsal.binding.api.WriteTransaction tx, org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object data, java.util.List<SubTransaction> transactionObjects)
void
delete(org.opendaylight.mdsal.binding.api.WriteTransaction tx, org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object data, java.util.List<SubTransaction> transactionObjects)
int
getBatchInterval()
int
getBatchSize()
org.opendaylight.mdsal.common.api.LogicalDatastoreType
getDatastoreType()
org.opendaylight.mdsal.binding.api.DataBroker
getResourceBroker()
void
update(org.opendaylight.mdsal.binding.api.WriteTransaction tx, org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object original, java.lang.Object update, java.util.List<SubTransaction> transactionObjects)
void
updateContainer(org.opendaylight.mdsal.binding.api.WriteTransaction tx, org.opendaylight.mdsal.common.api.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.mdsal.binding.api.WriteTransaction tx, org.opendaylight.mdsal.common.api.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
-
updateContainer
public void updateContainer(org.opendaylight.mdsal.binding.api.WriteTransaction tx, org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDatastoreType, org.opendaylight.yangtools.yang.binding.InstanceIdentifier identifier, java.lang.Object original, java.lang.Object update, java.util.List<SubTransaction> transactionObjects)
- Specified by:
updateContainer
in interfaceResourceHandler
-
create
public void create(org.opendaylight.mdsal.binding.api.WriteTransaction tx, org.opendaylight.mdsal.common.api.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.mdsal.binding.api.WriteTransaction tx, org.opendaylight.mdsal.common.api.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.mdsal.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.mdsal.common.api.LogicalDatastoreType getDatastoreType()
- Specified by:
getDatastoreType
in interfaceResourceHandler
-
-