* 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.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.mdsal.binding.api.ReadTransaction;
+import org.opendaylight.mdsal.common.api.LogicalDatastoreType;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
*/
boolean submitTransaction();
+ /**
+ * Method submits Transaction to DataStore and wait till completes by doing get on tx future.
+ * @return transaction is submitted successfully
+ */
+ boolean syncSubmitTransaction();
+
/**
* Method exposes transaction created for device
* represented by this context. This read only transaction has a fresh dataStore snapshot.
* as write transaction in this context.
* @return readOnlyTransaction - Don't forget to close it after finish reading
*/
- ReadOnlyTransaction getReadTransaction();
+ ReadTransaction getReadTransaction();
/**
* Method returns true if transaction chain manager is enabled.