This commit is contained in:
Redkale
2017-04-20 14:32:15 +08:00
parent ae2d64991c
commit d18a55deaf

View File

@@ -83,9 +83,7 @@ public interface CacheSource<K extends Serializable, V extends Object> {
public CompletableFuture<Void> removeSetItemAsync(final K key, final V value);
default CompletableFuture<Boolean> isOpenAsync() {
CompletableFuture<Boolean> future = new CompletableFuture();
future.complete(true);
return future;
return CompletableFuture.completedFuture(true);
}
//---------------------- AsyncHandler 异步版 ---------------------------------