Hi Team,
I have a question regarding Ignite Services and Compute async.

If we have a deployed IgniteService like this

public class MySercviceImpl implements Service, MyService {


@IgniteInstanceResource
  private Ignite ignite;
  
  @Override
  public IgniteFuture<Void> doStuff() {
    
    IgniteFuture<Void> runAsync =
ignite.compute(ignite.cluster().forLocal()).runAsync(new IgniteRunnable() {
      
      private static final long serialVersionUID = 1L;

      @Override
      public void run() {
       System.out.println(Thread.currentThread() + " Hello");
       System.out.println("World");
      }
    });
  
    return runAsync;
  }
}

Is it correct to call this service's method from a client and waits on
returned future? Something like this:
MyService serviceProxy = ignite.services().serviceProxy("MyService",
MyService.class, false);
IgniteFuture<Void> future = serviceProxy.doStuff();
future.get();

I've noticed that my client stuck on  doStuff.get();

Thanks
Krzysztof





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to