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
(AddTriggerRequest<T> trigger) Queues/updates the given trigger, if theTriggerKey
is already present.<T extends Serializable>
TriggerKeyPersistentTaskService.runOrQueue
(AddTriggerRequest<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<AddTriggerRequest<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 knownTriggerData
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 TypeMethodDescriptionAddTriggerRequest.key()
Returns the value of thekey
record component.static TriggerKey
TriggerKey.of
(String id, TaskId<? extends Serializable> taskId) Constructors in org.sterl.spring.persistent_tasks.api with parameters of type TriggerKeyModifierConstructorDescriptionAddTriggerRequest
(TriggerKey key, T state, OffsetDateTime runtAt, int priority, String correlationId) Creates an instance of aAddTriggerRequest
record class. -
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
<TriggerHistoryDetailEntity> HistoryService.findAllDetailsForKey
(TriggerKey key) org.springframework.data.domain.Page
<TriggerHistoryDetailEntity> HistoryService.findAllDetailsForKey
(TriggerKey key, org.springframework.data.domain.Pageable page) HistoryService.findLastKnownStatus
(TriggerKey triggerKey) org.springframework.data.domain.Page
<TriggerHistoryLastStateEntity> HistoryService.findTriggerState
(TriggerKey key, TriggerStatus status, org.springframework.data.domain.Pageable page) Checks for the last known state in the history. -
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
(AddTriggerRequest<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. -
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
(AddTriggerRequest<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<TriggerEntity> trigger) TaskExecutorComponent.submit
(TriggerEntity 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 persistentTaskorg.springframework.data.domain.Page
<TriggerEntity> TriggerService.findAllTriggers
(TriggerKey key, TriggerStatus status, org.springframework.data.domain.Pageable page) TriggerService.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 id) org.springframework.data.domain.Page
<TriggerEntity> ReadTriggerComponent.listTriggers
(TriggerKey key, TriggerStatus status, org.springframework.data.domain.Pageable page) 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 TypeMethodDescriptionTriggerRepository.findByKey
(TriggerKey key) TriggerRepository.lockByKey
(TriggerKey key) Method parameters in org.sterl.spring.persistent_tasks.trigger.repository with type arguments of type TriggerKeyModifier and TypeMethodDescriptionint
TriggerRepository.markTriggersAsRunning
(Collection<TriggerKey> keys, String runningOn, OffsetDateTime lastPing, TriggerStatus status)