Package com.hazelcast.config
Class SocketInterceptorConfig
java.lang.Object
com.hazelcast.config.SocketInterceptorConfig
Contains the configuration for interceptor socket.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturns the name of theSocketInterceptorimplementation class.Returns theSocketInterceptorimplementation object.Gets all properties.getProperty(String name) Gets a property.final inthashCode()booleanReturns if this configuration is enabled.setClassName(String className) Sets the name for theSocketInterceptorimplementation class.setEnabled(boolean enabled) Enables and disables this configuration.setImplementation(Object implementation) Sets theSocketInterceptorimplementation 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 theSocketInterceptorimplementation class.- Returns:
- name of the
SocketInterceptorimplementation class
-
setClassName
Sets the name for theSocketInterceptorimplementation class.- Parameters:
className- the name of theSocketInterceptorimplementation class to set- Returns:
- this SocketInterceptorConfig instance
-
setImplementation
Sets theSocketInterceptorimplementation object.- Parameters:
implementation- theSocketInterceptorimplementation object to set- Returns:
- this SocketInterceptorConfig instance
-
getImplementation
Returns theSocketInterceptorimplementation object.- Returns:
- the
SocketInterceptorimplementation object
-
isEnabled
public boolean isEnabled()Returns if this configuration is enabled.- Returns:
trueif enabled,falseotherwise
-
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,
nullif 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
-