Do not use deprecated Futures methods
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / services / AbstractSilentErrorService.java
index 727ccff8bb95e47682e7c4c8f4a7754c7d869cb4..a1da76e333fd55abb5dade9e70ad7fd23c1ebf12 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.openflowplugin.impl.services;
 
 import com.google.common.util.concurrent.Futures;
 import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
 import java.util.function.Function;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
@@ -35,6 +36,6 @@ public abstract class AbstractSilentErrorService<I, O extends DataObject>
         return Futures.catching(
             super.handleServiceCall(input, isComplete),
             Throwable.class,
-            t -> RpcResultBuilder.<O>failed().build());
+            t -> RpcResultBuilder.<O>failed().build(), MoreExecutors.directExecutor());
     }
 }