RateLimitManagerRegistry class abstract interface

Registry for managing and exposing RateLimitManager instances.

The RateLimitManagerRegistry coordinates multiple rate limit managers that may each govern their own scope of responsibility — such as different application domains, service layers, or logical partitions.

Purpose

This registry allows the system to support multi-manager setups where each manager might handle a unique set of RateLimitStorage instances. It also enables hierarchical configurations or fallback policies.

Use Cases

  • Registering global and tenant-specific rate limit managers.
  • Supporting composite management strategies across distributed systems.
  • Providing an extensible registry layer for framework-level plugins.

Example

final manager = DefaultRateLimitManager('core');
registry.addManager(manager);

final names = await manager.getStorageNames();
print('Registered storages: $names');
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addManager(RateLimitManager manager) → void
Adds a new RateLimitManager to the registry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited