Documentation for a newer release is available. View Latest

MongoComponentStore

El MongoComponentStore es una implementación adaptadora para un almacén de datos MongoDB.

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

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

Interfaz

La interfaz ComponentStore 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);
}