MongoComponentStore

El MongoComponentStore es una implementación de adaptador para un MongoDB almacenamiento de datos.

Es un componente intercambiable que puede ser fácilmente sustituido por otro siempre que implemente la interfaz ComponentStore.

A continuación se presentan los métodos proporcionados por el adaptador y su descripción:

Interfaz

La interfaz Component Store se define con las siguientes operaciones.

public interface ComponentStore<T> {

    CompletionStage<Component<T>> findById(ComponentId id);

    Flux<Component<T>> findAllByBulkIdAndMarkerFlux(BulkId bulkId, String marker);

    Flux<Component<T>> findAllByParentIdAndMarkerFlux(ComponentId parentId, String marker);

    Flux<Component<T>> findAllByBulkIdFlux(BulkId bulkId);

    Flux<Component<T>> findAllByParentIdFlux(ComponentId parentId);

    CompletionStage<Void> deleteAllByBulkId(BulkId bulkId);

    CompletionStage<Boolean> existsByParentId(ComponentId id);

    CompletionStage<Void> deleteById(ComponentId id);

    CompletionStage<Void> deleteOlderThan(Instant creationDate);

    CompletionStage<Component<T>> save(Component<T> component);

    CompletionStage<Component<T>> findRootParentComponentById(ComponentId id);
}