Package com.hazelcast.config
Class SocketInterceptorConfig
- java.lang.Object
-
- com.hazelcast.config.SocketInterceptorConfig
-
public class SocketInterceptorConfig extends java.lang.Object
Contains the configuration for interceptor socket.
-
-
Constructor Summary
Constructors Constructor Description SocketInterceptorConfig()
SocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getClassName()
Returns the name of theSocketInterceptor
implementation class.java.lang.Object
getImplementation()
Returns theSocketInterceptor
implementation object.java.util.Properties
getProperties()
Gets all properties.java.lang.String
getProperty(java.lang.String name)
Gets a property.int
hashCode()
boolean
isEnabled()
Returns if this configuration is enabled.SocketInterceptorConfig
setClassName(java.lang.String className)
Sets the name for theSocketInterceptor
implementation class.SocketInterceptorConfig
setEnabled(boolean enabled)
Enables and disables this configuration.SocketInterceptorConfig
setImplementation(java.lang.Object implementation)
Sets theSocketInterceptor
implementation object.SocketInterceptorConfig
setProperties(java.util.Properties properties)
Sets the properties.SocketInterceptorConfig
setProperty(java.lang.String name, java.lang.String value)
Sets a property.java.lang.String
toString()
-
-
-
Constructor Detail
-
SocketInterceptorConfig
public SocketInterceptorConfig()
-
SocketInterceptorConfig
public SocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
Returns the name of theSocketInterceptor
implementation class.- Returns:
- name of the
SocketInterceptor
implementation class
-
setClassName
public SocketInterceptorConfig setClassName(@Nonnull java.lang.String className)
Sets the name for theSocketInterceptor
implementation class.- Parameters:
className
- the name of theSocketInterceptor
implementation class to set- Returns:
- this SocketInterceptorConfig instance
-
setImplementation
public SocketInterceptorConfig setImplementation(@Nonnull java.lang.Object implementation)
Sets theSocketInterceptor
implementation object.- Parameters:
implementation
- theSocketInterceptor
implementation object to set- Returns:
- this SocketInterceptorConfig instance
-
getImplementation
public java.lang.Object 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
public SocketInterceptorConfig setEnabled(boolean enabled)
Enables and disables this configuration.- Parameters:
enabled
- true to enable, false to disable
-
setProperty
public SocketInterceptorConfig setProperty(java.lang.String name, java.lang.String value)
Sets a property.- Parameters:
name
- the name of the property to setvalue
- the value of the property to set- Returns:
- the updated SocketInterceptorConfig
- Throws:
java.lang.NullPointerException
- if name or value isnull
-
getProperty
public java.lang.String getProperty(java.lang.String name)
Gets a property.- Parameters:
name
- the name of the property to get- Returns:
- the value of the property,
null
if not found - Throws:
java.lang.NullPointerException
- if name isnull
-
getProperties
public java.util.Properties getProperties()
Gets all properties.- Returns:
- the properties
-
setProperties
public SocketInterceptorConfig setProperties(java.util.Properties properties)
Sets the properties.- Parameters:
properties
- the properties to set- Returns:
- the updated SSLConfig
- Throws:
java.lang.IllegalArgumentException
- if properties isnull
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-