use of org.apache.bookkeeper.stream.storage.api.sc.StorageContainer in project bookkeeper by apache.
the class StorageContainerRegistryImpl method unsafeStopStorageContainer.
private CompletableFuture<Void> unsafeStopStorageContainer(long scId) {
if (closed) {
return FutureUtils.exception(new ObjectClosedException(COMPONENT_NAME));
}
StorageContainer group = groups.remove(scId);
if (null == group) {
return FutureUtils.value(null);
}
log.info("Unregistered StorageContainer ('{}').", scId);
return group.stop();
}
Aggregations