Here are the examples of the java api class org.apache.activemq.artemis.api.core.client.FailoverEventListener taken from open source projects.
1. ClientSessionFactoryImpl#callFailoverListeners()
Project: activemq-artemis
File: ClientSessionFactoryImpl.java
File: ClientSessionFactoryImpl.java
private void callFailoverListeners(FailoverEventType type) { final List<FailoverEventListener> listenersClone = new ArrayList<>(failoverListeners); for (final FailoverEventListener listener : listenersClone) { try { listener.failoverEvent(type); } catch (final Throwable t) { ActiveMQClientLogger.LOGGER.failedToExecuteListener(t); } } }