register
Registers a named sharding strategy in this registrar.
This method stores the sharding strategy using its name as the key, allowing it to be retrieved later using the name.
Example usage:
val registrar = SimpleShardingRegistrar()
val sharding = MyNamedSharding("order-sharding")
val previous = registrar.register(sharding)
val retrieved = registrar["order-sharding"] // Returns the sharding instanceContent copied to clipboard
Return
The previous sharding strategy associated with the name, or null if none existed
Parameters
namedAggregateIdSharding
The named sharding strategy to register