Search in sources :

Example 6 with ActionableResource

use of org.opendaylight.genius.utils.batching.ActionableResource in project netvirt by opendaylight.

the class BgpUtil method update.

public <T extends DataObject> void update(final InstanceIdentifier<T> path, final T data) {
    ActionableResource actResource = new ActionableResourceImpl(path.toString());
    actResource.setAction(ActionableResource.UPDATE);
    actResource.setInstanceIdentifier(path);
    actResource.setInstance(data);
    bgpResourcesBufferQ.add(actResource);
}
Also used : ActionableResource(org.opendaylight.genius.utils.batching.ActionableResource) ActionableResourceImpl(org.opendaylight.genius.utils.batching.ActionableResourceImpl)

Aggregations

ActionableResource (org.opendaylight.genius.utils.batching.ActionableResource)6 ActionableResourceImpl (org.opendaylight.genius.utils.batching.ActionableResourceImpl)6