Package com.hazelcast.config
Class SocketInterceptorConfig
java.lang.Object
com.hazelcast.config.SocketInterceptorConfig
Contains the configuration for interceptor socket.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Returns the name of theSocketInterceptor
implementation class.Returns theSocketInterceptor
implementation object.Gets all properties.getProperty
(String name) Gets a property.final int
hashCode()
boolean
Returns if this configuration is enabled.setClassName
(String className) Sets the name for theSocketInterceptor
implementation class.setEnabled
(boolean enabled) Enables and disables this configuration.setImplementation
(Object implementation) Sets theSocketInterceptor
implementation object.setProperties
(Properties properties) Sets the properties.setProperty
(String name, String value) Sets a property.toString()
-
Constructor Details
-
SocketInterceptorConfig
public SocketInterceptorConfig() -
SocketInterceptorConfig
-
-
Method Details
-
getClassName
Returns the name of theSocketInterceptor
implementation class.- Returns:
- name of the
SocketInterceptor
implementation class
-
setClassName
Sets the name for theSocketInterceptor
implementation class.- Parameters:
className
- the name of theSocketInterceptor
implementation class to set- Returns:
- this SocketInterceptorConfig instance
-
setImplementation
Sets theSocketInterceptor
implementation object.- Parameters:
implementation
- theSocketInterceptor
implementation object to set- Returns:
- this SocketInterceptorConfig instance
-
getImplementation
Returns theSocketInterceptor
implementation object.- Returns:
- the
SocketInterceptor
implementation object
-
isEnabled
public boolean isEnabled()Returns if this configuration is enabled.- Returns:
true
if enabled,false
otherwise
-
setEnabled
Enables and disables this configuration.- Parameters:
enabled
- true to enable, false to disable
-
setProperty
Sets a property.- Parameters:
name
- the name of the property to setvalue
- the value of the property to set- Returns:
- the updated SocketInterceptorConfig
- Throws:
NullPointerException
- if name or value isnull
-
getProperty
Gets a property.- Parameters:
name
- the name of the property to get- Returns:
- the value of the property,
null
if not found - Throws:
NullPointerException
- if name isnull
-
getProperties
Gets all properties.- Returns:
- the properties
-
setProperties
Sets the properties.- Parameters:
properties
- the properties to set- Returns:
- the updated SSLConfig
- Throws:
IllegalArgumentException
- if properties isnull
-
equals
-
hashCode
public final int hashCode() -
toString
-