Class AxonTaskJanitor

java.lang.Object
org.axonframework.messaging.core.timeout.AxonTaskJanitor

public class AxonTaskJanitor extends Object
Utility constructing a ScheduledExecutorService and providing Logger instances for the AxonTimeLimitedTask.

To ensure a unique executor is used throughout, the executorComponent() should be registered with an applications Configuration just once under the EXECUTOR_COMPONENT_NAME. Doing so on top level ensures (1) that there is a single instance throughout and (2) that it's lifecycle is tied to the application's lifecycle.

Since:
4.11.0
Author:
Mitchell Herrijgers, Steven van Beelen
See Also:
  • AxonTimeLimitedTask