Package com.caucho.bam.query

Examples of com.caucho.bam.query.QueryFuture


                                 Serializable payload,
                                 long timeout)
  {
    long qId = getQueryManager().nextQueryId();
   
    QueryFuture future
      = getQueryManager().addQueryFuture(qId, to, getAddress(), payload, timeout);
   
    getBroker().query(qId, to, getAddress(), payload);
                     
    return future;
View Full Code Here


    if (linkStream == null)
      throw new IllegalStateException(this + " can't send a query because the link is closed.");

    long id = _queryManager.nextQueryId();
   
    QueryFuture future
      = _queryManager.addQueryFuture(id, to, getAddress(), payload, timeout);

    linkStream.query(id, to, getAddress(), payload);
   
    return future.get();
  }
View Full Code Here

TOP

Related Classes of com.caucho.bam.query.QueryFuture

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.