Interface SocketInterceptor

  • All Known Subinterfaces:

    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 see MemberSocketInterceptor 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. see SocketInterceptorConfig
    • Method Detail

      • init

        void init​(java.util.Properties properties)
        Initializes socket interceptor with properties which is set by Config.setProperty(String, String)
        properties - from hazelcast config
      • onConnect

        void onConnect​( connectedSocket)
        Called when a connection is established.
        connectedSocket - related socket
        Throws: - in case of any exceptional case