Ice.ImplicitContext¶
- final class Ice.ImplicitContext(impl: ImplicitContext)¶
Bases:
objectAn interface to associate implicit contexts with communicators.
When you make a remote invocation without an explicit context parameter, Ice uses the per-proxy context (if any) combined with the ImplicitContext associated with the communicator.
Ice provides several implementations of ImplicitContext. The implementation used depends on the value of the Ice.ImplicitContext property.
- None (default)
No implicit context at all.
- PerThread
The implementation maintains a context per thread.
- Shared
The implementation maintains a single context shared by all threads.
ImplicitContext also provides a number of operations to create, update, or retrieve an entry in the underlying context without first retrieving a copy of the entire context.
- Parameters:
impl (ImplicitContext)
- get(key: str) str¶
Get the value associated with the given key in the underlying context.
Returns an empty string if no value is associated with the key. Use containsKey to distinguish between an empty-string value and no value at all.
- getContext() dict[str, str]¶
Get a copy of the underlying context.
- Returns:
A copy of the underlying context.
- Return type: