Example #1
0
 @Override
 public CompletableFuture<AbstractState> open() {
   context.checkThread();
   open = true;
   return CompletableFuture.completedFuture(null);
 }
Example #2
0
 @Override
 public CompletableFuture<Void> close() {
   context.checkThread();
   open = false;
   return CompletableFuture.completedFuture(null);
 }