public class ReactiveMongoPersistentEntityIndexCreator extends Object
MongoPersistentEntity instances contained in the given MongoMappingContext
for indexing metadata and ensures the indexes to be available using reactive infrastructure.| Constructor and Description |
|---|
ReactiveMongoPersistentEntityIndexCreator(MongoMappingContext mappingContext,
ReactiveIndexOperationsProvider operationsProvider)
Creates a new
ReactiveMongoPersistentEntityIndexCreator for the given MongoMappingContext,
ReactiveIndexOperationsProvider. |
ReactiveMongoPersistentEntityIndexCreator(MongoMappingContext mappingContext,
ReactiveIndexOperationsProvider operationsProvider,
org.springframework.data.mongodb.core.index.IndexResolver indexResolver)
Creates a new
ReactiveMongoPersistentEntityIndexCreator for the given MongoMappingContext,
ReactiveIndexOperationsProvider, and IndexResolver. |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
checkForIndexes(MongoPersistentEntity<?> entity)
Inspect entities for index creation.
|
boolean |
isIndexCreatorFor(MappingContext<?,?> context)
Returns whether the current index creator was registered for the given
MappingContext. |
public ReactiveMongoPersistentEntityIndexCreator(MongoMappingContext mappingContext, ReactiveIndexOperationsProvider operationsProvider)
ReactiveMongoPersistentEntityIndexCreator for the given MongoMappingContext,
ReactiveIndexOperationsProvider.mappingContext - must not be null.operationsProvider - must not be null.public ReactiveMongoPersistentEntityIndexCreator(MongoMappingContext mappingContext, ReactiveIndexOperationsProvider operationsProvider, org.springframework.data.mongodb.core.index.IndexResolver indexResolver)
ReactiveMongoPersistentEntityIndexCreator for the given MongoMappingContext,
ReactiveIndexOperationsProvider, and IndexResolver.mappingContext - must not be null.operationsProvider - must not be null.indexResolver - must not be null.public boolean isIndexCreatorFor(MappingContext<?,?> context)
MappingContext.context - public reactor.core.publisher.Mono<Void> checkForIndexes(MongoPersistentEntity<?> entity)
Mono that completes without value after indexes were created.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.