Merge "minor: fix JavaDoc in class Packet"
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / services / multilayer / MultiLayerAggregateFlowMultipartService.java
index a5f203c86809cb0aa798eadab7dfe5ae430611d1..c2859606e4150afbc3f571ea42bb4068a4cde580 100644 (file)
@@ -12,9 +12,10 @@ import com.google.common.base.Function;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Preconditions;
 import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
 import java.util.List;
 import java.util.Optional;
-import java.util.concurrent.Future;
 import java.util.stream.Collectors;
 import org.opendaylight.openflowplugin.api.OFConstants;
 import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
@@ -115,7 +116,7 @@ public class MultiLayerAggregateFlowMultipartService extends AbstractAggregateFl
     }
 
     @Override
-    public Future<RpcResult<GetAggregateFlowStatisticsFromFlowTableForGivenMatchOutput>> handleAndReply(
+    public ListenableFuture<RpcResult<GetAggregateFlowStatisticsFromFlowTableForGivenMatchOutput>> handleAndReply(
             final GetAggregateFlowStatisticsFromFlowTableForGivenMatchInput input) {
         return Futures.transform(handleServiceCall(input),
                      (Function<RpcResult<List<MultipartReply>>,
@@ -144,6 +145,6 @@ public class MultiLayerAggregateFlowMultipartService extends AbstractAggregateFl
                 return RpcResultBuilder
                              .<GetAggregateFlowStatisticsFromFlowTableForGivenMatchOutput>failed()
                              .withRpcErrors(result.getErrors()).build();
-            });
+            }, MoreExecutors.directExecutor());
     }
 }