How to create a completed future in java
Apache Commons Lang defines similar implementation that is called ConstantFuture, you can get it by calling:
Future<T> future = ConcurrentUtils.constantFuture(T myValue);
In Java 8 you can use the built-in CompletableFuture:
Future future = CompletableFuture.completedFuture(value);