public class ClusterJoinSocketInterceptor extends Object implements com.hazelcast.nio.MemberSocketInterceptor, com.hazelcast.core.HazelcastInstanceAware
MemberSocketInterceptor which delegates to ClusterJoinManager to verify if a member can join.
Unfortunately this cannot be a singleton as it requires access to the node's SerializationService
| Constructor and Description |
|---|
ClusterJoinSocketInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Properties properties) |
void |
onAccept(Socket socket) |
void |
onConnect(Socket socket) |
void |
setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcast) |
public void init(Properties properties)
init in interface com.hazelcast.nio.SocketInterceptorpublic void onAccept(Socket socket) throws IOException
onAccept in interface com.hazelcast.nio.MemberSocketInterceptorIOExceptionpublic void onConnect(Socket socket) throws IOException
onConnect in interface com.hazelcast.nio.SocketInterceptorIOExceptionpublic void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcast)
setHazelcastInstance in interface com.hazelcast.core.HazelcastInstanceAwareCopyright © 2003–2022 Atlassian. All rights reserved.