CavalliumDBEngine/src/main/java/it/cavallium/dbengine/client/CompositeDatabase.java

28 lines
500 B
Java
Raw Normal View History

package it.cavallium.dbengine.client;
2021-05-05 17:31:21 +02:00
import io.netty.buffer.ByteBufAllocator;
2021-06-26 02:35:33 +02:00
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface CompositeDatabase {
Mono<Void> close();
2021-06-26 02:35:33 +02:00
/**
* Can return SnapshotException
*/
Mono<CompositeSnapshot> takeSnapshot();
2021-06-26 02:35:33 +02:00
/**
* Can return SnapshotException
*/
Mono<Void> releaseSnapshot(CompositeSnapshot snapshot);
2021-05-05 17:31:21 +02:00
ByteBufAllocator getAllocator();
2021-06-26 02:35:33 +02:00
/**
* Find corrupted items
*/
Flux<BadBlock> badBlocks();
}