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 final class ClusterJoinSocketInterceptor
extends Object
implements com.hazelcast.nio.MemberSocketInterceptor, com.hazelcast.core.HazelcastInstanceAware
A
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
- Since:
- 7.17.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(Properties properties) void
void
void
setHazelcastInstance
(com.hazelcast.core.HazelcastInstance hazelcast)
-
Constructor Details
-
ClusterJoinSocketInterceptor
public ClusterJoinSocketInterceptor()
-
-
Method Details
-
init
- Specified by:
init
in interfacecom.hazelcast.nio.SocketInterceptor
-
onAccept
- Specified by:
onAccept
in interfacecom.hazelcast.nio.MemberSocketInterceptor
- Throws:
IOException
-
onConnect
- Specified by:
onConnect
in interfacecom.hazelcast.nio.SocketInterceptor
- Throws:
IOException
-
setHazelcastInstance
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcast) - Specified by:
setHazelcastInstance
in interfacecom.hazelcast.core.HazelcastInstanceAware
-