*/
package org.opendaylight.controller.cluster.databroker.actors.dds;
-import com.google.common.base.Preconditions;
import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTree;
-final class LocalProxyHistory extends AbstractProxyHistory {
- private final DataTree dataTree;
-
- LocalProxyHistory(DistributedDataStoreClientBehavior client, LocalHistoryIdentifier identifier, DataTree dataTree) {
- super(client, identifier);
- this.dataTree = Preconditions.checkNotNull(dataTree);
+final class ClientLocalProxyHistory extends AbstractLocalProxyHistory {
+ ClientLocalProxyHistory(final DistributedDataStoreClientBehavior client, final LocalHistoryIdentifier identifier,
+ final DataTree dataTree) {
+ super(client, identifier, dataTree);
}
@Override
final TransactionIdentifier txId) {
// FIXME: this violates history contract: we should use the last submitted transaction instead to ensure
// causality
- return new LocalProxyTransaction(client, txId, dataTree.takeSnapshot());
+ return new LocalProxyTransaction(client, txId, takeSnapshot());
}
}
\ No newline at end of file