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%2Fdatabroker%2Factors%2Fdds%2FLocalAbortable.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatabroker%2Factors%2Fdds%2FLocalAbortable.java;h=5b0708f120aec2c3d5c6b543df7f3b26c0ec20b7;hb=98d1c5606bad9633ce5549bcd691a98c75abdf6a;hp=0000000000000000000000000000000000000000;hpb=e6b9c7e282a526aeb1469b6f7aa9b61f69d01743;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalAbortable.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalAbortable.java new file mode 100644 index 0000000000..5b0708f120 --- /dev/null +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/databroker/actors/dds/LocalAbortable.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2016 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.databroker.actors.dds; + +/** + * Common interface for client histories and client transactions, which can be aborted immediately without replicating + * the effect to the backend. This is needed for abrupt shutdowns. + * + * Since classes which need to expose this functionality do not need a base class, this is an abstract class and not + * an interface -- which allows us to not leak the {@link #localAbort(Throwable)} method. + * + * @author Robert Varga + */ +abstract class LocalAbortable { + /** + * Immediately abort this object. + * + * @param cause Failure which caused this abort. + */ + abstract void localAbort(Throwable cause); +}