X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FOperationCallback.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FOperationCallback.java;h=0000000000000000000000000000000000000000;hb=736333d81f3033ad3a78a7bcadc27b9256396706;hp=da0b62b7c398e98aa80d15a008c0a9adfd6c518d;hpb=3d0b84870481f03e4187bfbb7da89ff23e37516b;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/OperationCallback.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/OperationCallback.java deleted file mode 100644 index da0b62b7c3..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/OperationCallback.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - -package org.opendaylight.controller.cluster.datastore; - -import java.util.concurrent.atomic.AtomicReference; - -interface OperationCallback { - OperationCallback NO_OP_CALLBACK = new OperationCallback() { - @Override - public void run() { - } - - @Override - public void success() { - } - - @Override - public void failure() { - } - - @Override - public void pause() { - } - - @Override - public void resume() { - } - }; - - class Reference extends AtomicReference { - private static final long serialVersionUID = 1L; - - Reference(OperationCallback initialValue) { - super(initialValue); - } - } - - void run(); - - void pause(); - - void resume(); - - void success(); - - void failure(); -}