Package org.ardverk.dht.message

Examples of org.ardverk.dht.message.StoreRequest


    }
  }
 
  private synchronized void store(Contact dst) throws IOException {
    MessageFactory factory = getMessageFactory();
    StoreRequest request = factory.createStoreRequest(dst, key, value);
   
    long defaultTimeout = config.getStoreTimeoutInMillis();
    long adaptiveTimeout = config.getAdaptiveTimeout(
        dst, defaultTimeout, TimeUnit.MILLISECONDS);
   
View Full Code Here


    return datastore.store(src, key, value);
  }
 
  @Override
  public ResponseMessage handleRequest(RequestMessage message) throws IOException {
    StoreRequest request = (StoreRequest)message;
    Value value = store(request);
   
    MessageFactory factory = getMessageFactory();
    return factory.createStoreResponse(request, value);
  }
View Full Code Here

TOP

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

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.