Package com.hazelcast.config
Interface UserCodeNamespaceAwareConfig<T>
- Type Parameters:
T- Implementation type for use in return type ofsetUserCodeNamespace(String)
- All Known Implementing Classes:
CacheConfig,CacheSimpleConfig,CollectionConfig,DurableExecutorConfig,ExecutorConfig,ListConfig,MapConfig,MultiMapConfig,QueueConfig,ReliableTopicConfig,ReplicatedMapConfig,RingbufferConfig,ScheduledExecutorConfig,SetConfig,TopicConfig,VectorCollectionConfig
public interface UserCodeNamespaceAwareConfig<T>
An interface to mark implementing configs as "Namespace aware", meaning they should
support the definition of a
User Code Namespace string which represents the
User Code Namespace to associate with all operations pertaining to this config.- Since:
- 5.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefines the default User Code Namespace Name used for allUserCodeNamespaceAwareConfigimplementations. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringRetrieve the User Code Deployment Namespace to be used forClassLoaderawareness during operations related to the structure associated with this configuration.setUserCodeNamespace(String userCodeNamespace) Associates the provided User Code Namespace Name with this structure forClassLoaderawareness.
-
Field Details
-
DEFAULT_NAMESPACE
Defines the default User Code Namespace Name used for allUserCodeNamespaceAwareConfigimplementations.The default is currently
nullwhich results in the following behaviour:- When a "default" Namespace is defined in the
UserCodeNamespaceService, i.e. a Namespace exists with the IDUserCodeNamespaceService.DEFAULT_NAMESPACE_NAME, that Namespace is used for relevant operations after being transformed internally. - When there is no "default" Namespace defined, this value remains
nulland there is no Namespace awareness used during relevant operations.
- When a "default" Namespace is defined in the
-
-
Method Details
-
getUserCodeNamespace
Retrieve the User Code Deployment Namespace to be used forClassLoaderawareness during operations related to the structure associated with this configuration.- Returns:
- Namespace Name for use with the
UserCodeNamespaceService, ornullif there is no User Code Namespace to associate with. - Since:
- 5.4
-
setUserCodeNamespace
Associates the provided User Code Namespace Name with this structure forClassLoaderawareness.The behaviour of setting this to
nullis outlined in the documentation forDEFAULT_NAMESPACE.- Parameters:
userCodeNamespace- The ID of the User Code Namespace to associate with this structure.- Returns:
- the updated
UserCodeNamespaceAwareConfigconfig instance - Since:
- 5.4
-