Package cn.fantasticmao.mundo.data.jdbc
Interface RoutingStrategy<SEED>
-
- All Known Implementing Classes:
RoutingStrategy.MultiTenant,RoutingStrategy.ShardingByMod
public interface RoutingStrategy<SEED>- Since:
- 2022-08-16
- Version:
- 1.0.6
- Author:
- fantasticmao
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRoutingStrategy.MultiTenantstatic classRoutingStrategy.ShardingByMod<SEED extends Number>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetKey(SEED seed)Get theRoutingDataSourcelookup key by the currentRoutingSeed.
-
-
-
Method Detail
-
getKey
@Nullable String getKey(@Nonnull SEED seed)
Get theRoutingDataSourcelookup key by the currentRoutingSeed.- Parameters:
seed- the current thread-local route seed- Returns:
- datasource lookup key
-
-