public abstract class AbstractClientListenerService extends Object implements ClientListenerService, MetricsProvider, ConnectionListener
Modifier and Type | Field and Description |
---|---|
protected HazelcastClientInstanceImpl |
client |
protected long |
invocationRetryPauseMillis |
protected long |
invocationTimeoutMillis |
protected Map<ClientRegistrationKey,Map<Connection,ClientEventRegistration>> |
registrations |
protected SerializationService |
serializationService |
Modifier and Type | Method and Description |
---|---|
void |
addEventHandler(long callId,
EventHandler handler) |
void |
connectionAdded(Connection connection) |
void |
connectionRemoved(Connection connection) |
boolean |
deregisterListener(String userRegistrationId) |
Collection<ClientEventRegistration> |
getActiveRegistrations(String uuid) |
StripedExecutor |
getEventExecutor() |
Map<Long,EventHandler> |
getEventHandlers() |
Map<ClientRegistrationKey,Map<Connection,ClientEventRegistration>> |
getRegistrations() |
void |
handleClientMessage(ClientMessage clientMessage) |
protected void |
invoke(ClientRegistrationKey registrationKey,
Connection connection) |
void |
provideMetrics(MetricsRegistry registry) |
String |
registerListener(ListenerMessageCodec codec,
EventHandler handler) |
void |
removeEventHandler(long callId) |
void |
shutdown() |
void |
start() |
protected final HazelcastClientInstanceImpl client
protected final SerializationService serializationService
protected final long invocationTimeoutMillis
protected final long invocationRetryPauseMillis
protected final Map<ClientRegistrationKey,Map<Connection,ClientEventRegistration>> registrations
public String registerListener(ListenerMessageCodec codec, EventHandler handler)
registerListener
in interface ClientListenerService
public boolean deregisterListener(String userRegistrationId)
deregisterListener
in interface ClientListenerService
public void provideMetrics(MetricsRegistry registry)
provideMetrics
in interface MetricsProvider
public void addEventHandler(long callId, EventHandler handler)
public void handleClientMessage(ClientMessage clientMessage)
protected void invoke(ClientRegistrationKey registrationKey, Connection connection) throws Exception
Exception
public void connectionAdded(Connection connection)
connectionAdded
in interface ConnectionListener
public void shutdown()
public void start()
public void connectionRemoved(Connection connection)
connectionRemoved
in interface ConnectionListener
public StripedExecutor getEventExecutor()
public Collection<ClientEventRegistration> getActiveRegistrations(String uuid)
public Map<ClientRegistrationKey,Map<Connection,ClientEventRegistration>> getRegistrations()
public Map<Long,EventHandler> getEventHandlers()
public void removeEventHandler(long callId)
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.