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.SocketInterceptor
public void onAccept(Socket socket) throws IOException
onAccept
in interface com.hazelcast.nio.MemberSocketInterceptor
IOException
public void onConnect(Socket socket) throws IOException
onConnect
in interface com.hazelcast.nio.SocketInterceptor
IOException
public void setHazelcastInstance(com.hazelcast.core.HazelcastInstance hazelcast)
setHazelcastInstance
in interface com.hazelcast.core.HazelcastInstanceAware
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences