Uses of Class
org.sterl.spring.persistent_tasks.api.TriggerKey
Packages that use TriggerKey
Package
Description
-
Uses of TriggerKey in org.sterl.spring.persistent_tasks
Methods in org.sterl.spring.persistent_tasks that return TriggerKeyModifier and TypeMethodDescription<T extends Serializable>
TriggerKeyPersistentTaskService.queue
(TriggerRequest<T> trigger) Queues/updates the given trigger, if theTriggerKey
is already present.<T extends Serializable>
TriggerKeyPersistentTaskService.runOrQueue
(TriggerRequest<T> triggerRequest) Runs the given trigger if a free threads are available and the runAt time is not in the future.Methods in org.sterl.spring.persistent_tasks that return types with arguments of type TriggerKeyModifier and TypeMethodDescription<T extends Serializable>
List<TriggerKey> PersistentTaskService.queue
(Collection<TriggerRequest<T>> triggers) Queues/updates the given triggers, if theTriggerKey
is already presentMethods in org.sterl.spring.persistent_tasks with parameters of type TriggerKeyModifier and TypeMethodDescriptionPersistentTaskService.getLastDetailData
(TriggerKey key) PersistentTaskService.getLastTriggerData
(TriggerKey key) Returns the last knownTriggerEntity
to a given key. -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.api
Methods in org.sterl.spring.persistent_tasks.api that return TriggerKeyModifier and TypeMethodDescriptionTriggerRequest.key()
Returns the value of thekey
record component.static TriggerKey
TriggerKey.of
(String id, TaskId<? extends Serializable> taskId) Methods in org.sterl.spring.persistent_tasks.api with parameters of type TriggerKeyModifier and TypeMethodDescriptionstatic <T extends Serializable>
TaskId.TriggerBuilder<T> TaskId.TriggerBuilder.newTrigger
(TriggerKey key, T state) Constructors in org.sterl.spring.persistent_tasks.api with parameters of type TriggerKeyModifierConstructorDescriptionTriggerRequest
(TriggerKey key, TriggerStatus status, T state, OffsetDateTime runtAt, int priority, String correlationId, String tag) Creates an instance of aTriggerRequest
record class.Constructor parameters in org.sterl.spring.persistent_tasks.api with type arguments of type TriggerKeyModifierConstructorDescriptionQTriggerKey
(com.querydsl.core.types.Path<? extends TriggerKey> path) -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.history
Methods in org.sterl.spring.persistent_tasks.history that return types with arguments of type TriggerKeyMethods in org.sterl.spring.persistent_tasks.history with parameters of type TriggerKeyModifier and TypeMethodDescriptionlong
HistoryService.countTriggers
(TriggerKey key) org.springframework.data.domain.Page
<HistoryTriggerEntity> HistoryService.findAllDetailsForKey
(TriggerKey key) org.springframework.data.domain.Page
<HistoryTriggerEntity> HistoryService.findAllDetailsForKey
(TriggerKey key, org.springframework.data.domain.Pageable page) HistoryService.findLastKnownStatus
(TriggerKey triggerKey) -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.history.api
Methods in org.sterl.spring.persistent_tasks.history.api that return types with arguments of type TriggerKeyModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<TriggerKey> TriggerHistoryResource.reRunTrigger
(Long id) -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.history.model
Methods in org.sterl.spring.persistent_tasks.history.model that return TriggerKey -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.history.repository
Methods in org.sterl.spring.persistent_tasks.history.repository with parameters of type TriggerKeyModifier and TypeMethodDescriptionorg.springframework.data.domain.Page
<T> HistoryTriggerRepository.listKnownStatusFor
(TriggerKey key, org.springframework.data.domain.Pageable page) -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.scheduler
Methods in org.sterl.spring.persistent_tasks.scheduler that return TriggerKeyModifier and TypeMethodDescription<T extends Serializable>
TriggerKeySchedulerService.runOrQueue
(TriggerRequest<T> triggerRequest) Runs the given trigger if a free threads are available and the runAt time is not in the future.Methods in org.sterl.spring.persistent_tasks.scheduler that return types with arguments of type TriggerKeyModifier and TypeMethodDescriptionSchedulerService.getRunning()
SchedulerService.triggerNextTasks()
Simply triggers the next persistentTask which is now due to be executedSchedulerService.triggerNextTasks
(OffsetDateTime timeDue) LikeSchedulerService.triggerNextTasks()
but allows to set the time e.g. to the future to trigger tasks which wouldn't be triggered now. -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.scheduler.component
Methods in org.sterl.spring.persistent_tasks.scheduler.component that return TriggerKeyModifier and TypeMethodDescription<T extends Serializable>
TriggerKeyRunOrQueueComponent.execute
(TriggerRequest<T> triggerRequest) Runs the given trigger if a free threads are available and the runAt time is not in the future.Methods in org.sterl.spring.persistent_tasks.scheduler.component that return types with arguments of type TriggerKeyModifier and TypeMethodDescriptionTaskExecutorComponent.getRunningTasks()
TaskExecutorComponent.submit
(List<RunningTriggerEntity> trigger) TaskExecutorComponent.submit
(RunningTriggerEntity trigger) -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.test
Methods in org.sterl.spring.persistent_tasks.test that return types with arguments of type TriggerKeyModifier and TypeMethodDescriptionPersistentTaskTestService.awaitRunningTriggers()
Just waits for the current running triggersPersistentTaskTestService.awaitRunningTriggers
(Duration duration) Just waits for the current running triggersPersistentTaskTestService.awaitTriggers
(Duration duration, List<Future<TriggerKey>> running) PersistentTaskTestService.scheduleNextTriggers()
Triggers the execution of all pending triggers.PersistentTaskTestService.scheduleNextTriggersAndWait()
Triggers the execution of all pending triggers and wait for the result.PersistentTaskTestService.scheduleNextTriggersAndWait
(Duration maxWaitTime) Triggers the execution of all pending triggers and wait for the result.Methods in org.sterl.spring.persistent_tasks.test with parameters of type TriggerKeyModifier and TypeMethodDescriptionvoid
PersistentTaskTestService.assertHasNextTask
(TriggerStatus status, TriggerKey key) Runs the next trigger and ensures where is one.Method parameters in org.sterl.spring.persistent_tasks.test with type arguments of type TriggerKeyModifier and TypeMethodDescriptionPersistentTaskTestService.awaitTriggers
(Duration duration, List<Future<TriggerKey>> running) -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.trigger
Methods in org.sterl.spring.persistent_tasks.trigger with parameters of type TriggerKeyModifier and TypeMethodDescriptionTriggerService.cancel
(TriggerKey key) If you changed your mind, cancel the persistentTaskTriggerService.get
(TriggerKey triggerKey) TriggerService.run
(TriggerKey triggerKey, String runningOn) The main purpose of this method is to simplify testing and run just one trigger.TriggerService.updateRunAt
(TriggerKey key, OffsetDateTime time) Method parameters in org.sterl.spring.persistent_tasks.trigger with type arguments of type TriggerKeyModifier and TypeMethodDescriptionTriggerService.cancel
(Collection<TriggerKey> key) int
TriggerService.markTriggersAsRunning
(Collection<TriggerKey> keys, String runOn) -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.trigger.component
Methods in org.sterl.spring.persistent_tasks.trigger.component with parameters of type TriggerKeyModifier and TypeMethodDescriptionEditTriggerComponent.cancelTask
(TriggerKey id, Exception e) EditTriggerComponent.completeTaskWithSuccess
(TriggerKey key, Serializable state) EditTriggerComponent.failTrigger
(TriggerKey key, Serializable state, Exception e, OffsetDateTime retryAt) Sets error based on the fact if an exception is given or not.ReadTriggerComponent.get
(TriggerKey key) LockNextTriggerComponent.lock
(TriggerKey id, String runningOn) Method parameters in org.sterl.spring.persistent_tasks.trigger.component with type arguments of type TriggerKeyModifier and TypeMethodDescriptionint
EditTriggerComponent.markTriggersAsRunning
(Collection<TriggerKey> keys, String runOn) -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.trigger.model
Methods in org.sterl.spring.persistent_tasks.trigger.model that return TriggerKeyConstructors in org.sterl.spring.persistent_tasks.trigger.model with parameters of type TriggerKey -
Uses of TriggerKey in org.sterl.spring.persistent_tasks.trigger.repository
Methods in org.sterl.spring.persistent_tasks.trigger.repository with parameters of type TriggerKeyModifier and TypeMethodDescriptionRunningTriggerRepository.findByKey
(TriggerKey key) RunningTriggerRepository.lockByKey
(TriggerKey key) Method parameters in org.sterl.spring.persistent_tasks.trigger.repository with type arguments of type TriggerKeyModifier and TypeMethodDescriptionint
RunningTriggerRepository.markTriggersAsRunning
(Collection<TriggerKey> keys, String runningOn, OffsetDateTime lastPing, TriggerStatus status)