Package net.tomp2p.futures

Examples of net.tomp2p.futures.FuturePut.addListener()


    if (putFuture == null) {
      return false;
    }

    FuturePutListener listener = new FuturePutListener(parameters, this);
    putFuture.addListener(listener);
    return listener.await();
  }

  @Override
  public boolean changeProtectionKey(IParameters parameters) {
View Full Code Here


    if (putFuture == null) {
      return false;
    }

    FutureChangeProtectionListener listener = new FutureChangeProtectionListener(parameters);
    putFuture.addListener(listener);
    return listener.await();
  }

  @Override
  public boolean putUserProfileTask(String userId, Number160 contentKey, NetworkContent content,
View Full Code Here

    if (putFuture == null) {
      return false;
    }

    FuturePutListener listener = new FuturePutListener(parameters, this);
    putFuture.addListener(listener);
    return listener.await();
  }

  public FuturePut putUnblocked(IParameters parameters) {
    logger.debug("Put. {}", parameters.toString());
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.