Wit new implementation of RequestProcessor, transactions are better
managed, and their closure is assured by the commit. Letting the user
interfere in transaction management can make the application very
instable.
So, remove close method from NetworkTransactionService interface.
JIRA: TRNSPRTPCE-727
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I9b384c729d105795d0047d51149f9bf9342ce298
return requestProcessor.commit();
}
- @Override
- public void close() {
-
- requestProcessor.close();
- }
-
public <T extends DataObject> void merge(LogicalDatastoreType store,
InstanceIdentifier<T> path, T data) {
requestProcessor.merge(store, path, data);
FluentFuture<? extends @NonNull CommitInfo> commit();
- void close();
-
/**
* the Databroker related to NetworkTransactionService.
* @return the Databroker related to NetworkTransactionService.
}
}
- public void close() {
- LOG.info("closing RequestProcessor Locks by {}", Thread.currentThread().getName());
- writeTrMap.remove(Thread.currentThread().getName());
- readL.unlock();
- writeL.unlock();
- }
-
/**
* Return the dataBroker related to RequestProcessor.
* @return the dataBroker