| HazelcastClientGetUserContext Method |
Returns a ConcurrentMap that can be used to add user-context to the IHazelcastInstance.
Namespace:
Hazelcast.Client
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.12.2
Syntax public ConcurrentDictionary<string, Object> GetUserContext()
Public Function GetUserContext As ConcurrentDictionary(Of String, Object)
public:
virtual ConcurrentDictionary<String^, Object^>^ GetUserContext() sealed
abstract GetUserContext : unit -> ConcurrentDictionary<string, Object>
override GetUserContext : unit -> ConcurrentDictionary<string, Object>
Return Value
Type:
ConcurrentDictionaryString,
Objectthe user context.
Implements
IHazelcastInstanceGetUserContextRemarks
Returns a ConcurrentMap that can be used to add user-context to the IHazelcastInstance. This can be used
to store dependencies that otherwise are hard to obtain. IHazelcastInstance can be
obtained by implementing IHazelcastInstanceAware interface when submitting a Runnable/Callable to
Hazelcast ExecutorService. By storing the dependencies in the user-context, they can be retrieved as soon
as you have a reference to the IHazelcastInstance.
This structure is purely local and Hazelcast remains agnostic abouts its content.
See Also