ShardingRegistrar

Registry for managing aggregate ID sharding strategies by name.

This interface extends MutableMap to provide standard map operations for storing and retrieving sharding strategies, with additional convenience methods for registering named sharding implementations.

It's commonly used to maintain different sharding strategies for different aggregate types or contexts, allowing dynamic configuration and lookup.

See also

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard
abstract override val keys: MutableSet<String>
Link copied to clipboard
abstract val size: Int
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun clear()
Link copied to clipboard
abstract fun containsKey(key: String): Boolean
Link copied to clipboard
Link copied to clipboard
abstract operator fun get(key: String): AggregateIdSharding?
Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
abstract fun put(key: String, value: AggregateIdSharding): AggregateIdSharding?
Link copied to clipboard
abstract fun putAll(from: Map<out String, AggregateIdSharding>)
Link copied to clipboard
open fun register(namedAggregateIdSharding: NamedAggregateIdSharding): AggregateIdSharding?

Registers a named sharding strategy in this registrar.

Link copied to clipboard

Converts a nullable map of strings to a Header instance.