public class CounterEventDispatcher extends EventDispatcher<HotRodCounterEvent>
Constructor and Description |
---|
CounterEventDispatcher(byte[] listenerId,
ConcurrentMap<String,List<Consumer<HotRodCounterEvent>>> clientListeners,
SocketAddress address,
Supplier<CompletableFuture<Short>> failover,
Runnable cleanup) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Short> |
executeFailover() |
protected void |
invokeEvent(HotRodCounterEvent event) |
address, invokeFailoverEvent, isRunning, start, stop
public CounterEventDispatcher(byte[] listenerId, ConcurrentMap<String,List<Consumer<HotRodCounterEvent>>> clientListeners, SocketAddress address, Supplier<CompletableFuture<Short>> failover, Runnable cleanup)
public CompletableFuture<Short> executeFailover()
executeFailover
in class EventDispatcher<HotRodCounterEvent>
protected void invokeEvent(HotRodCounterEvent event)
invokeEvent
in class EventDispatcher<HotRodCounterEvent>
Copyright © 2021 JBoss by Red Hat. All rights reserved.