X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fdata%2FAsyncTransaction.java;fp=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fdata%2FAsyncTransaction.java;h=23ca275ef20ef24a710b39d5f06ff96fa9ca00ce;hb=9fda938ef6dc037ef1c5a9fbed25469d4a532150;hp=0000000000000000000000000000000000000000;hpb=9b07bd85d10b509d29b70b1e43b1919c5b4bcbb2;p=controller.git diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncTransaction.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncTransaction.java new file mode 100644 index 0000000000..23ca275ef2 --- /dev/null +++ b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/data/AsyncTransaction.java @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2014 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.md.sal.common.api.data; + +import org.opendaylight.yangtools.concepts.Identifiable; +import org.opendaylight.yangtools.concepts.Path; + + +/** + * + * @author + * + * @param

Type of path (subtree identifier), which represents location in tree + * @param Type of data (payload), which represents data payload + */ +public interface AsyncTransaction

,D> extends // + Identifiable, + AutoCloseable { + + @Override + public Object getIdentifier(); + + /** + * Closes transaction and releases all resources associated with it. + */ + @Override + public void close(); +}