Package org.ardverk.dht.message

Examples of org.ardverk.dht.message.ValueRequest


    this.datastore = datastore;
  }
 
  @Override
  public ResponseMessage handleRequest(RequestMessage message) throws IOException {
    ValueRequest request = (ValueRequest)message;
   
    Contact src = request.getContact();
    Key key = request.getKey();
    Value value = datastore.get(src, key);
   
    MessageFactory factory = getMessageFactory();
    ResponseMessage response = null;
   
View Full Code Here


      long timeout, TimeUnit unit) throws IOException {
   
    assert (lookupId.equals(key.getId()));
   
    MessageFactory factory = getMessageFactory();
    ValueRequest message = factory.createValueRequest(dst, key);
   
    send(dst, message, timeout, unit);
  }
View Full Code Here

TOP

Related Classes of org.ardverk.dht.message.ValueRequest

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.