Interface ShardingAssistant
-
- All Known Subinterfaces:
CollectionShardingAssistant
,DatabaseShardingAssistant<M>
- All Known Implementing Classes:
CollectionShardedMongoTemplate
,CollectionShardedReactiveMongoTemplate
,CompositeShardedMongoTemplate
,CompositeShardedReactiveMongoTemplate
,DatabaseShardedExecutableFindSupport
,DatabaseShardedExecutableInsertSupport
,DatabaseShardedExecutableRemoveSupport
,DatabaseShardedExecutableUpdateSupport
,DatabaseShardedMongoTemplate
,DatabaseShardedReactiveMongoTemplate
,ShardedMongoTemplate
,ShardedReactiveMongoTemplate
public interface ShardingAssistant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description HintResolutionCallbacks
getHintResolutionCallbacks()
ShardingOptions
getShardingOptions()
default String
resolveCollectionHintWithoutEntityContext()
default String
resolveCollectionNameWithoutEntityContext(String collectionName)
Resolve the collection name when there is no entity context.default String
resolveDatabaseHintWithoutEntityContext()
default String
resolveDatabaseNameWithoutEntityContext(String databaseName)
Resolve the database name when there is no entity context.
-
-
-
Method Detail
-
getShardingOptions
ShardingOptions getShardingOptions()
-
getHintResolutionCallbacks
HintResolutionCallbacks getHintResolutionCallbacks()
-
resolveCollectionHintWithoutEntityContext
default String resolveCollectionHintWithoutEntityContext() throws UnresolvableCollectionShardException
-
resolveDatabaseHintWithoutEntityContext
default String resolveDatabaseHintWithoutEntityContext() throws UnresolvableDatabaseShardException
-
resolveCollectionNameWithoutEntityContext
default String resolveCollectionNameWithoutEntityContext(String collectionName) throws UnresolvableCollectionShardException
Resolve the collection name when there is no entity context. Here,ShardingHintManager
is used to determine the collection.- Parameters:
collectionName
- Base Collection Name- Returns:
- Resolved Collection Name
- Throws:
UnresolvableCollectionShardException
- when the flow is unable to determine the hint
-
resolveDatabaseNameWithoutEntityContext
default String resolveDatabaseNameWithoutEntityContext(String databaseName) throws UnresolvableDatabaseShardException
Resolve the database name when there is no entity context. Here,ShardingHintManager
is used to determine the database name.- Parameters:
databaseName
- Base Database Name- Returns:
- Resolved Collection Name
- Throws:
UnresolvableCollectionShardException
- when the flow is unable to determine the hintUnresolvableDatabaseShardException
-
-