Examples of awaitAndGet()


Examples of org.hive2hive.core.network.data.futures.FutureDigestListener.awaitAndGet()

  public NavigableMap<Number640, Number160> getDigest(IParameters parameters) {
    FutureDigest futureDigest = getDigestUnblocked(parameters);
    FutureDigestListener listener = new FutureDigestListener(parameters);
    futureDigest.addListener(listener);
    return listener.awaitAndGet();
  }

  public FutureDigest getDigestUnblocked(IParameters parameters) {
    logger.debug("Get digest. {}", parameters.toString());
    return getPeer()
View Full Code Here

Examples of org.hive2hive.core.network.data.futures.FutureGetListener.awaitAndGet()

  @Override
  public NetworkContent get(IParameters parameters) {
    FutureGet futureGet = getUnblocked(parameters);
    FutureGetListener listener = new FutureGetListener(parameters);
    futureGet.addListener(listener);
    return listener.awaitAndGet();
  }

  public NetworkContent getVersion(IParameters parameters) {
    FutureGet futureGet = getUnblocked(parameters);
    FutureGetListener listener = new FutureGetListener(parameters);
View Full Code Here

Examples of org.hive2hive.core.network.data.futures.FutureGetListener.awaitAndGet()

  public NetworkContent getVersion(IParameters parameters) {
    FutureGet futureGet = getUnblocked(parameters);
    FutureGetListener listener = new FutureGetListener(parameters);
    futureGet.addListener(listener);
    return listener.awaitAndGet();
  }

  @Override
  public NetworkContent getUserProfileTask(String userId) {
    IParameters parameters = new Parameters().setLocationKey(userId).setDomainKey(
View Full Code Here

Examples of org.hive2hive.core.network.data.futures.FutureGetListener.awaitAndGet()

            Number160.ZERO))
        .to(new Number640(parameters.getLKey(), parameters.getDKey(), Number160.MAX_VALUE,
            Number160.MAX_VALUE)).ascending().returnNr(1).start();
    FutureGetListener listener = new FutureGetListener(parameters);
    futureGet.addListener(listener);
    return listener.awaitAndGet();
  }

  public FutureGet getUnblocked(IParameters parameters) {
    logger.debug("Get. {}", parameters.toString());
    return getPeer()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.