Package org.jgroups.util

Examples of org.jgroups.util.FutureListener


   
    for (int i = 0; i < 5; i++){
      Util.sleep(100);
      System.out.println("Invoke all members 'getUser' method");
      NotifyingFuture<RspList> future = disp.callRemoteMethodWithFuture(channel.getAddress(), method_call, new RequestOptions(ResponseMode.GET_ALL, 5000));
      future.setListener(new FutureListener(){

        public void futureDone(Future future) {
          try {
            System.out.println("result is " + future.get());
          } catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of org.jgroups.util.FutureListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.