CompletableFuture<Void> configure(Member.Type type) {
    CompletableFuture<Void> future = new CompletableFuture<>();
    cluster.getContext().getThreadContext().executor().execute(() -> configure(type, future));
    return future;
  }
CompletableFuture < Void > configure ( Member . Type type ) { CompletableFuture < Void > future = new CompletableFuture < > ( ) ; cluster . getContext ( ) . getThreadContext ( ) . executor ( ) . execute ( ( ) -> configure ( type , future ) ) ; return future ; }
Demotes the server to the given type.