Class EventLoggerNotifierImpl
java.lang.Object
org.infinispan.notifications.impl.AbstractListenerImpl<EventLog,ListenerInvocation<EventLog>>
org.infinispan.util.logging.events.impl.EventLoggerNotifierImpl
- All Implemented Interfaces:
Listenable,EventLoggerNotifier
public class EventLoggerNotifierImpl
extends AbstractListenerImpl<EventLog,ListenerInvocation<EventLog>>
implements EventLoggerNotifier
-
Nested Class Summary
Nested classes/interfaces inherited from class org.infinispan.notifications.impl.AbstractListenerImpl
AbstractListenerImpl.AbstractInvocationBuilder, AbstractListenerImpl.ListenerInvocationImpl<A> -
Field Summary
Fields inherited from class org.infinispan.notifications.impl.AbstractListenerImpl
asyncProcessor, listenersMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListenerAsync(Object listener) Asynchronous version ofListenable.addListener(Object)protected Map<Class<? extends Annotation>,Class<?>> protected LoggetLog()protected voidNotify the listeners about logged information.removeListenerAsync(Object listener) Asynchronous version ofListenable.removeListener(Object)protected voidresumeIfNeeded(javax.transaction.Transaction transaction) protected javax.transaction.TransactionMethods inherited from class org.infinispan.notifications.impl.AbstractListenerImpl
canApply, composeStageIfNeeded, findListenerCallbacks, getListenerCollectionForAnnotation, getListeners, hasListener, invokeListeners, removeListenerFromMaps, removeListenerInvocation, resumeOnCPU, stop, testListenerClassValidity, testListenerMethodValidity, validateAndAddFilterListenerInvocations, validateAndAddListenerInvocationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.notifications.Listenable
addListener, getListeners, removeListener
-
Constructor Details
-
EventLoggerNotifierImpl
public EventLoggerNotifierImpl()
-
-
Method Details
-
getLog
- Specified by:
getLogin classAbstractListenerImpl<EventLog,ListenerInvocation<EventLog>>
-
getAllowedMethodAnnotations
- Specified by:
getAllowedMethodAnnotationsin classAbstractListenerImpl<EventLog,ListenerInvocation<EventLog>>
-
addListenerAsync
Description copied from interface:ListenableAsynchronous version ofListenable.addListener(Object)- Specified by:
addListenerAsyncin interfaceListenable- Parameters:
listener- listener to add, must not be null- Returns:
- CompletionStage that when complete the listener is fully installed
-
removeListenerAsync
Description copied from interface:ListenableAsynchronous version ofListenable.removeListener(Object)- Specified by:
removeListenerAsyncin interfaceListenable- Specified by:
removeListenerAsyncin classAbstractListenerImpl<EventLog,ListenerInvocation<EventLog>> - Parameters:
listener- listener to remove, must not be null- Returns:
- CompletionStage that when complete the listener is fully removed
-
suspendIfNeeded
protected javax.transaction.Transaction suspendIfNeeded()- Specified by:
suspendIfNeededin classAbstractListenerImpl<EventLog,ListenerInvocation<EventLog>>
-
resumeIfNeeded
protected void resumeIfNeeded(javax.transaction.Transaction transaction) - Specified by:
resumeIfNeededin classAbstractListenerImpl<EventLog,ListenerInvocation<EventLog>>
-
handleException
- Overrides:
handleExceptionin classAbstractListenerImpl<EventLog,ListenerInvocation<EventLog>>
-
notifyEventLogged
Description copied from interface:EventLoggerNotifierNotify the listeners about logged information. This method notifies about any type of logged information, without filtering for level or category. Is up to the listeners to filter the desired events.- Specified by:
notifyEventLoggedin interfaceEventLoggerNotifier- Parameters:
log- : the logged information.- Returns:
- a
CompletionStagewhich completes when the notification has been sent.
-