Do not use JdkFutureAdapters
[openflowplugin.git] / applications / forwardingrules-sync / src / main / java / org / opendaylight / openflowplugin / applications / frsync / ForwardingRulesUpdateCommitter.java
index d1b3eead9ac6f074065f4d932d3781f8b66e41be..ebc6bca9502effded71229f5cdefce180aefd39f 100644 (file)
@@ -1,14 +1,13 @@
-/**
+/*
  * Copyright (c) 2016 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.openflowplugin.applications.frsync;
 
-import java.util.concurrent.Future;
+import com.google.common.util.concurrent.ListenableFuture;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
 import org.opendaylight.yangtools.yang.binding.DataObject;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
@@ -27,8 +26,9 @@ public interface ForwardingRulesUpdateCommitter<D extends DataObject, U extends
      * @param original   - original DataObject (for update)
      * @param update     - changed DataObject (contain updates)
      * @param nodeIdent  - Node InstanceIdentifier
+     * @return RpcResult of action
      */
-    Future<RpcResult<U>> update(InstanceIdentifier<D> identifier, D original, D update,
+    ListenableFuture<RpcResult<U>> update(InstanceIdentifier<D> identifier, D original, D update,
                                 InstanceIdentifier<FlowCapableNode> nodeIdent);