public class ClientListenerNotifier extends Object
Modifier | Constructor and Description |
---|---|
protected |
ClientListenerNotifier(ExecutorService executor,
Codec codec,
Marshaller marshaller,
TransportFactory transportFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addClientListener(AddClientListenerOperation op) |
static ClientListenerNotifier |
create(Codec codec,
Marshaller marshaller,
TransportFactory transportFactory) |
void |
failoverClientListener(byte[] listenerId) |
void |
failoverClientListeners(Set<SocketAddress> failedServers) |
byte[] |
findListenerId(Object listener) |
Map<Class<? extends Annotation>,List<org.infinispan.client.hotrod.event.ClientListenerNotifier.ClientListenerInvocation>> |
findMethods(Object listener) |
Transport |
findTransport(byte[] listenerId) |
Set<Object> |
getListeners(byte[] cacheName) |
Marshaller |
getMarshaller() |
void |
invokeEvent(byte[] listenerId,
ClientEvent clientEvent) |
boolean |
isListenerConnected(byte[] listenerId) |
void |
removeClientListener(byte[] listenerId) |
void |
startClientListener(byte[] listenerId) |
void |
stop() |
protected ClientListenerNotifier(ExecutorService executor, Codec codec, Marshaller marshaller, TransportFactory transportFactory)
public static ClientListenerNotifier create(Codec codec, Marshaller marshaller, TransportFactory transportFactory)
public Marshaller getMarshaller()
public void addClientListener(AddClientListenerOperation op)
public void failoverClientListeners(Set<SocketAddress> failedServers)
public void failoverClientListener(byte[] listenerId)
public void startClientListener(byte[] listenerId)
public void removeClientListener(byte[] listenerId)
public byte[] findListenerId(Object listener)
public boolean isListenerConnected(byte[] listenerId)
public Transport findTransport(byte[] listenerId)
public Map<Class<? extends Annotation>,List<org.infinispan.client.hotrod.event.ClientListenerNotifier.ClientListenerInvocation>> findMethods(Object listener)
public void stop()
public void invokeEvent(byte[] listenerId, ClientEvent clientEvent)
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.