Class ClusterJoinSocketInterceptor
- java.lang.Object
-
- com.atlassian.confluence.impl.cluster.hazelcast.interceptor.ClusterJoinSocketInterceptor
-
- All Implemented Interfaces:
com.hazelcast.core.HazelcastInstanceAware,com.hazelcast.nio.MemberSocketInterceptor,com.hazelcast.nio.SocketInterceptor
public class ClusterJoinSocketInterceptor extends Object implements com.hazelcast.nio.MemberSocketInterceptor, com.hazelcast.core.HazelcastInstanceAware
AMemberSocketInterceptorwhich delegates toClusterJoinManagerto verify if a member can join.Unfortunately this cannot be a singleton as it requires access to the
node'sSerializationService- Since:
- 7.17.1
-
-
Constructor Summary
Constructors Constructor Description ClusterJoinSocketInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(Properties properties)voidonAccept(Socket socket)voidonConnect(Socket socket)voidsetHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcast)
-
-
-
Method Detail
-
init
public void init(Properties properties)
- Specified by:
initin interfacecom.hazelcast.nio.SocketInterceptor
-
onAccept
public void onAccept(Socket socket) throws IOException
- Specified by:
onAcceptin interfacecom.hazelcast.nio.MemberSocketInterceptor- Throws:
IOException
-
onConnect
public void onConnect(Socket socket) throws IOException
- Specified by:
onConnectin interfacecom.hazelcast.nio.SocketInterceptor- Throws:
IOException
-
setHazelcastInstance
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcast)
- Specified by:
setHazelcastInstancein interfacecom.hazelcast.core.HazelcastInstanceAware
-
-