X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fapi%2Fopenflow%2Fdevice%2FTxFacade.java;h=b117d375d0e3d594ef9d2a4b87886f5ce7af37ee;hb=f35e2fb153438697238b3095e8323b8a343c1c93;hp=e8a8ccb90449b48aa753e4654db84dc91823cdc2;hpb=af171bff73edeb84d8b2260da9d60ba6bb4337cb;p=openflowplugin.git diff --git a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/TxFacade.java b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/TxFacade.java index e8a8ccb904..b117d375d0 100644 --- a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/TxFacade.java +++ b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/TxFacade.java @@ -10,6 +10,7 @@ package org.opendaylight.openflowplugin.api.openflow.device; import org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction; import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType; +import org.opendaylight.controller.md.sal.common.api.data.TransactionChainClosedException; import org.opendaylight.yangtools.yang.binding.DataObject; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; @@ -22,19 +23,19 @@ public interface TxFacade { * Method creates put operation using provided data in underlying transaction chain. */ void writeToTransaction(final LogicalDatastoreType store, final InstanceIdentifier path, - final T data) throws Exception; + final T data) throws TransactionChainClosedException; /** * Method creates put operation using provided data in underlying transaction chain and flag to create missing parents * WARNING: This method is slow because of additional reading cost. Use it only if you really need to create parents. */ void writeToTransactionWithParentsSlow(final LogicalDatastoreType store, final InstanceIdentifier path, - final T data) throws Exception; + final T data) throws TransactionChainClosedException; /** * Method creates delete operation for provided path in underlying transaction chain. */ - void addDeleteToTxChain(final LogicalDatastoreType store, final InstanceIdentifier path) throws Exception; + void addDeleteToTxChain(final LogicalDatastoreType store, final InstanceIdentifier path) throws TransactionChainClosedException; /** * Method submits Transaction to DataStore.