@@ -361,12 +361,14 @@ public CompletableFuture<V> load(K key) {
361
361
}
362
362
363
363
/**
364
- * This will return an optional promise to a value previously loaded via {@link #load(Object)} call or empty if not call has been made for that key.
364
+ * This will return an optional promise to a value previously loaded via a {@link #load(Object)} call or empty if not call has been made for that key.
365
365
* <p>
366
366
* If you do get a present CompletableFuture it does not mean it has been dispatched and completed yet. It just means
367
- * its at least pending and in cache. Of course if caching is disabled there will never be a present Optional returned.
367
+ * its at least pending and in cache.
368
368
* <p>
369
- * NOTE : This will NOT cause a data load to happen. You must called {@link #load(Object)} for that.
369
+ * If caching is disabled there will never be a present Optional returned.
370
+ * <p>
371
+ * NOTE : This will NOT cause a data load to happen. You must called {@link #load(Object)} for that to happen.
370
372
*
371
373
* @param key the key to check
372
374
* @return an Optional to the future of the value
@@ -376,12 +378,15 @@ public Optional<CompletableFuture<V>> getIfPresent(K key) {
376
378
}
377
379
378
380
/**
379
- * This will return an optional promise to a value previously loaded via {@link #load(Object)} call that has in fact been completed or empty
381
+ * This will return an optional promise to a value previously loaded via a {@link #load(Object)} call that has in fact been completed or empty
380
382
* if no call has been made for that key or the promise has not completed yet.
381
383
* <p>
382
- * If you do get a present CompletableFuture it means it has been dispatched and completed.
384
+ * If you do get a present CompletableFuture it means it has been dispatched and completed. Completed is defined as
385
+ * {@link java.util.concurrent.CompletableFuture#isDone()} returning true.
386
+ * <p>
387
+ * If caching is disabled there will never be a present Optional returned.
383
388
* <p>
384
- * NOTE : This will NOT cause a data load to happen. You must called {@link #load(Object)} for that.
389
+ * NOTE : This will NOT cause a data load to happen. You must called {@link #load(Object)} for that to happen .
385
390
*
386
391
* @param key the key to check
387
392
* @return an Optional to the future of the value
0 commit comments