import com.google.common.base.Preconditions;
import java.io.IOException;
import java.util.Optional;
-import java.util.concurrent.ExecutionException;
import org.opendaylight.controller.cluster.access.concepts.ClientIdentifier;
import org.opendaylight.controller.cluster.access.concepts.FrontendIdentifier;
import org.opendaylight.controller.cluster.access.concepts.FrontendType;
}
- void syncCommitTransaction(final ReadWriteShardDataTreeTransaction transaction)
- throws ExecutionException, InterruptedException {
- ShardDataTreeCohort commitCohort = store.finishTransaction(transaction);
- commitCohort.preCommit().get();
- commitCohort.commit().get();
- }
-
@Override
public void applySnapshot(final byte[] snapshotBytes) {
// Since this will be done only on Recovery or when this actor is a Follower