Package org.infinispan.hotrod.event.impl
Class ClientListenerNotifier
- java.lang.Object
-
- org.infinispan.hotrod.event.impl.ClientListenerNotifier
-
public class ClientListenerNotifier extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static AtomicIntegercounterstatic intRECONNECT_PERIOD
-
Constructor Summary
Constructors Constructor Description ClientListenerNotifier(Codec codec, org.infinispan.commons.marshall.Marshaller marshaller, ChannelFactory channelFactory, HotRodConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDispatcher(EventDispatcher<?> dispatcher)org.infinispan.commons.configuration.ClassAllowListallowList()ChannelFactorychannelFactory()Codeccodec()voidfailoverClientListener(byte[] listenerId)voidfailoverListeners(Set<SocketAddress> failedServers)SocketAddressfindAddress(byte[] listenerId)byte[]findListenerId(Object listener)DataFormatgetCacheDataFormat(byte[] listenerId)Set<Object>getListeners(String cacheName)<T> voidinvokeEvent(byte[] listenerId, T event)booleanisListenerConnected(byte[] listenerId)org.infinispan.commons.marshall.Marshallermarshaller()EventDispatcher<?>removeClientListener(byte[] listenerId)voidstartClientListener(byte[] listenerId)voidstop()
-
-
-
Field Detail
-
counter
public static final AtomicInteger counter
-
RECONNECT_PERIOD
public static final int RECONNECT_PERIOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClientListenerNotifier
public ClientListenerNotifier(Codec codec, org.infinispan.commons.marshall.Marshaller marshaller, ChannelFactory channelFactory, HotRodConfiguration configuration)
-
-
Method Detail
-
marshaller
public org.infinispan.commons.marshall.Marshaller marshaller()
-
addDispatcher
public void addDispatcher(EventDispatcher<?> dispatcher)
-
failoverListeners
public void failoverListeners(Set<SocketAddress> failedServers)
-
failoverClientListener
public void failoverClientListener(byte[] listenerId)
-
startClientListener
public void startClientListener(byte[] listenerId)
-
removeClientListener
public EventDispatcher<?> removeClientListener(byte[] listenerId)
-
findListenerId
public byte[] findListenerId(Object listener)
-
isListenerConnected
public boolean isListenerConnected(byte[] listenerId)
-
findAddress
public SocketAddress findAddress(byte[] listenerId)
-
stop
public void stop()
-
invokeEvent
public <T> void invokeEvent(byte[] listenerId, T event)
-
getCacheDataFormat
public DataFormat getCacheDataFormat(byte[] listenerId)
-
codec
public Codec codec()
-
allowList
public org.infinispan.commons.configuration.ClassAllowList allowList()
-
channelFactory
public ChannelFactory channelFactory()
-
-