Interface ThreadSafeTokenCredentialStore
- All Superinterfaces:
TokenCredentialStore
@ExperimentalJSentinelApi
public interface ThreadSafeTokenCredentialStore
extends TokenCredentialStore
Marker for
TokenCredentialStore implementations that are safe
to use from multiple threads. The REST and Standalone adapter
defaults carry this marker (per-thread ThreadLocal slot, no
shared state). The Vaadin default does not — Vaadin's
session is single-thread per UI; background-thread access is an
application bug, not a framework concern.
PropagationDiagnosticContributor (V00.74 Prompt 018)
surfaces a propagation/store-not-thread-safe INFO code when a
consumer-supplied store on a REST / Standalone bootstrap lacks this
marker.
- Since:
- 00.74.00
-
Method Summary
Methods inherited from interface TokenCredentialStore
bind, clear, currentModifier and TypeMethodDescriptionvoidbind(TokenCredential credential) Replace any current entry withcredential.voidclear()Reset to the empty state.current()