import akka.actor.ActorSelection;
import com.google.common.base.Optional;
-import com.google.common.util.concurrent.CheckedFuture;
-import java.util.List;
-import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
+import com.google.common.util.concurrent.SettableFuture;
import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
import scala.concurrent.Future;
void mergeData(YangInstanceIdentifier path, NormalizedNode<?, ?> data);
- CheckedFuture<Optional<NormalizedNode<?, ?>>, ReadFailedException> readData(
- final YangInstanceIdentifier path);
+ void readData(final YangInstanceIdentifier path, SettableFuture<Optional<NormalizedNode<?, ?>>> proxyFuture);
- CheckedFuture<Boolean, ReadFailedException> dataExists(YangInstanceIdentifier path);
+ void dataExists(YangInstanceIdentifier path, SettableFuture<Boolean> proxyFuture);
- List<Future<Object>> getRecordedOperationFutures();
-}
\ No newline at end of file
+ boolean supportsDirectCommit();
+
+ Future<Object> directCommit();
+
+ /**
+ * Invoked by {@link TransactionContextWrapper} when it has finished handing
+ * off operations to this context. From this point on, the context is responsible
+ * for throttling operations.
+ *
+ * Implementations can rely on the wrapper calling this operation in a synchronized
+ * block, so they do not need to ensure visibility of this state transition themselves.
+ */
+ void operationHandOffComplete();
+
+ /**
+ * A TransactionContext that uses Operation limiting should return true else false
+ * @return
+ */
+ boolean usesOperationLimiting();
+}