Class JobRunrEventExternalizer
java.lang.Object
org.springframework.modulith.events.jobrunr.JobRunrEventExternalizer
- All Implemented Interfaces:
EventListener,ApplicationListener<PayloadApplicationEvent<?>>,ConditionalEventListener
class JobRunrEventExternalizer
extends Object
implements ApplicationListener<PayloadApplicationEvent<?>>, ConditionalEventListener
- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionJobRunrEventExternalizer(org.jobrunr.scheduling.JobScheduler scheduler, List<JobRunrExternalizationTransport> externalizers, EventExternalizationConfiguration configuration) Creates a newJobRunrEventExternalizerfor the givenJobScheduler,JobRunrExternalizationTransports andEventExternalizationConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(PayloadApplicationEvent<?> event) booleanReturns whether the given event instance is supported by the listener.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
JobRunrEventExternalizer
JobRunrEventExternalizer(org.jobrunr.scheduling.JobScheduler scheduler, List<JobRunrExternalizationTransport> externalizers, EventExternalizationConfiguration configuration) Creates a newJobRunrEventExternalizerfor the givenJobScheduler,JobRunrExternalizationTransports andEventExternalizationConfiguration.- Parameters:
scheduler- must not be null.externalizers- must not be null.configuration- must not be null.
-
-
Method Details
-
supports
Description copied from interface:ConditionalEventListenerReturns whether the given event instance is supported by the listener.- Specified by:
supportsin interfaceConditionalEventListener- Parameters:
event- must not be null.- Returns:
- whether the given event instance is supported by the listener.
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<PayloadApplicationEvent<?>>
-