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 see MemberSocketInterceptor see SocketInterceptorConfig


Method Summary
 void init(Properties properties)
          Initializes socket interceptor with properties which is set by Config.setProperty(String, String)
 void onConnect(Socket connectedSocket)
          Called when a connection is established.
 

Method Detail

init

void init(Properties properties)
Initializes socket interceptor with properties which is set by Config.setProperty(String, String)

Parameters:
properties - from hazelcast config

onConnect

void onConnect(Socket connectedSocket)
               throws IOException
Called when a connection is established.

Parameters:
connectedSocket - related socket
Throws:
IOException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.