2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.sal.core.spi.data;
10 import com.google.common.annotations.Beta;
11 import com.google.common.collect.ForwardingObject;
12 import com.google.common.util.concurrent.ListenableFuture;
15 * Abstract base class for {@link DOMStoreThreePhaseCommitCohort} implementations,
16 * which forward most of their functionality to a backend {@link #delegate()}.
18 * @deprecated Use {@link org.opendaylight.mdsal.dom.spi.store.ForwardingDOMStoreThreePhaseCommitCohort} instead.
20 @Deprecated(forRemoval = true)
22 public abstract class ForwardingDOMStoreThreePhaseCommitCohort extends ForwardingObject
23 implements DOMStoreThreePhaseCommitCohort {
25 protected abstract DOMStoreThreePhaseCommitCohort delegate();
28 public ListenableFuture<Boolean> canCommit() {
29 return delegate().canCommit();
33 public ListenableFuture<Void> preCommit() {
34 return delegate().preCommit();
38 public ListenableFuture<Void> abort() {
39 return delegate().abort();
43 public ListenableFuture<Void> commit() {
44 return delegate().commit();