Code example for LoadingCache

Methods: put

0
      return region;
   } 
 
   public void endElement(String uri, String name, String qName) {
      region = fromValue(currentOrNull(currentText));
      bucketToRegion.put(bucket, Optional.fromNullable(region));
   } 
 
   @Override 
   public LocationConstraintHandler setContext(HttpRequest request) {
      super.setContext(request);
      setBucket(GeneratedHttpRequest.class.cast(getRequest()).getInvocation().getArgs().get(0).toString());
      return this;
   } 
 
   void setBucket(String bucket) {
      this.bucket = bucket;
   } 
 
   /** 
Connect your IDE to all the code out there  Get Codota for Java