Interface SnStoreSelectionStrategy
-
- All Known Implementing Classes:
DefaultSnStoreSelectionStrategy
public interface SnStoreSelectionStrategyResolves the stores for a given index type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<BaseStoreModel>getDefaultStore(SnIndexTypeModel indexType)Returns the default stores for the given index type.java.util.Optional<BaseStoreModel>getDefaultStore(java.lang.String indexTypeId)Returns the default store for the given index type.java.util.List<BaseStoreModel>getStores(SnIndexTypeModel indexType)Returns the stores for the given index type.java.util.List<BaseStoreModel>getStores(java.lang.String indexTypeId)Returns the stores for the given index type.
-
-
-
Method Detail
-
getDefaultStore
java.util.Optional<BaseStoreModel> getDefaultStore(java.lang.String indexTypeId)
Returns the default store for the given index type.- Parameters:
indexTypeId- - the index type id- Returns:
- the default store
-
getDefaultStore
java.util.Optional<BaseStoreModel> getDefaultStore(SnIndexTypeModel indexType)
Returns the default stores for the given index type.- Parameters:
indexType- - the index type- Returns:
- the default store
-
getStores
java.util.List<BaseStoreModel> getStores(java.lang.String indexTypeId)
Returns the stores for the given index type.- Parameters:
indexTypeId- - the index type id- Returns:
- the stores
-
getStores
java.util.List<BaseStoreModel> getStores(SnIndexTypeModel indexType)
Returns the stores for the given index type.- Parameters:
indexType- - the index type- Returns:
- the stores
-
-