Package com.hazelcast.nio
Interface SocketInterceptor
-
- All Known Subinterfaces:
MemberSocketInterceptor
public interface SocketInterceptor
An interface that provides the ability to intercept the creation of sockets. It can be registered from client via config. For members seeMemberSocketInterceptor
Warning: a SocketInterceptor provides access to the socket and will bypass any TLS encryption. So be warned that any data send using the SocketInterceptor could be visible as plain text and could therefor be a security risk. seeSocketInterceptorConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
init(java.util.Properties properties)
Initializes socket interceptor with properties which is set byConfig.setProperty(String, String)
void
onConnect(java.net.Socket connectedSocket)
Called when a connection is established.
-
-
-
Method Detail
-
init
void init(java.util.Properties properties)
Initializes socket interceptor with properties which is set byConfig.setProperty(String, String)
- Parameters:
properties
- from hazelcast config
-
onConnect
void onConnect(java.net.Socket connectedSocket) throws java.io.IOException
Called when a connection is established.- Parameters:
connectedSocket
- related socket- Throws:
java.io.IOException
- in case of any exceptional case
-
-