java.lang.Object
org.opendaylight.controller.cluster.common.actor.ExplicitAsk

@Deprecated(since="10.0.5", forRemoval=true) public final class ExplicitAsk extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Unfortunately Akka's explicit ask pattern does not work with its Java API, as it fails to invoke passed message. In order to make this work for now, we tap directly into ExplicitAskSupport and use a Scala function instead of akka.japi.Function.
  • Method Details

    • toScala

      public static <T> scala.Function1<ActorRef,T> toScala(Function<ActorRef,T> function)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ask

      public static scala.concurrent.Future<Object> ask(ActorRef actor, scala.Function1<ActorRef,?> function, Timeout timeout)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ask

      public static scala.concurrent.Future<Object> ask(ActorSelection actor, scala.Function1<ActorRef,?> function, Timeout timeout)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ask

      public static scala.concurrent.Future<Object> ask(ActorRef actor, Function<ActorRef,?> function, Timeout timeout)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ask

      public static scala.concurrent.Future<Object> ask(ActorSelection actor, Function<ActorRef,?> function, Timeout timeout)
      Deprecated, for removal: This API element is subject to removal in a future version.