use of io.atomix.protocols.log.DistributedLogServer in project atomix by atomix.
the class LogPartitionServer method stop.
@Override
public CompletableFuture<Void> stop() {
DistributedLogServer server = this.server;
if (server != null) {
return server.stop().exceptionally(throwable -> {
log.error("Failed stopping server for {}", partition.id(), throwable);
return null;
}).thenRun(() -> started.set(false));
}
started.set(false);
return CompletableFuture.completedFuture(null);
}
Aggregations