Package com.hazelcast.config
Class UserCodeNamespaceConfig
java.lang.Object
com.hazelcast.config.UserCodeNamespaceConfig
- All Implemented Interfaces:
NamedConfig
,DataSerializable
,IdentifiedDataSerializable
public class UserCodeNamespaceConfig
extends Object
implements NamedConfig, IdentifiedDataSerializable
Contains the configuration for a specific User Code Namespace, defining its identifier
(name) as well as the definitions for resources it provides.
- Since:
- 5.4
-
Constructor Summary
ConstructorsConstructorDescriptionUserCodeNamespaceConfig
(String name, Map<String, com.hazelcast.internal.namespace.ResourceDefinition> resources) -
Method Summary
Modifier and TypeMethodDescriptionprotected UserCodeNamespaceConfig
add
(com.hazelcast.internal.namespace.ResourceDefinition resourceDefinition) addJarsInZip
(URL url, String id) boolean
int
Returns type identifier for this class.int
Returns DataSerializableFactory factory ID for this class.getName()
int
hashCode()
void
Reads fields from the input streamvoid
Writes object fields to output stream
-
Constructor Details
-
UserCodeNamespaceConfig
public UserCodeNamespaceConfig() -
UserCodeNamespaceConfig
-
UserCodeNamespaceConfig
-
UserCodeNamespaceConfig
-
-
Method Details
-
setName
- Specified by:
setName
in interfaceNamedConfig
-
getName
- Specified by:
getName
in interfaceNamedConfig
-
addClass
-
addJar
-
addJarsInZip
-
add
protected UserCodeNamespaceConfig add(com.hazelcast.internal.namespace.ResourceDefinition resourceDefinition) -
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
hashCode
public int hashCode() -
equals
-