Optionaloptions: DynamicResourceRegistryOptionsMaximum entries before FIFO eviction
Current number of stored entries
URI scheme used for generated URIs (e.g. ephemeral)
Remove all entries that have expired. Returns the number of removed entries. Invoked periodically by the cleanup timer.
Remove all entries and stop the cleanup timer. Used by tests and shutdown.
Read an ephemeral resource. Strict session-binding: the caller's
sessionId MUST match the registering session.
Register an ephemeral resource. Returns the generated URI and absolute expiration timestamp.
Start the cleanup timer eagerly (otherwise started on first register()).
Stop the cleanup timer. Safe to call multiple times.
Remove all entries owned by the given session. Returns the number of removed entries. Called automatically on session disconnect.
In-memory store for ephemeral, session-bound resources.
Use through getDynamicResourceRegistry (singleton) for the default configuration, or construct directly for custom scopes (testing, multi-tenant).