2 * Copyright (c) 2015, 2017 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.ovsdb.hwvtepsouthbound.transactions.md;
11 import com.google.common.util.concurrent.FluentFuture;
12 import org.opendaylight.mdsal.binding.api.ReadWriteTransaction;
14 public interface TransactionCommand {
16 void execute(ReadWriteTransaction transaction);
18 default void onSuccess() {
21 default void onFailure() {
25 * Sets the result future of the executed/submitted transaction.
27 default void setTransactionResultFuture(FluentFuture future) {
30 default FluentFuture getTransactionResultFuture() {