Class ReadTriggerComponent
java.lang.Object
org.sterl.spring.persistent_tasks.trigger.component.ReadTriggerComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
countByStatus
(TriggerStatus status) long
countByTaskName
(@NotNull String name) findTriggersLastPingAfter
(OffsetDateTime dateTime) Searches for all triggers which are still running but the ping is long ago.findTriggersTimeoutOut
(int max) get
(TriggerKey key) boolean
Checks if any job is still running or waiting for it's execution.org.springframework.data.domain.Page
<RunningTriggerEntity> listTriggers
(TaskId<? extends Serializable> task, org.springframework.data.domain.Pageable page) org.springframework.data.domain.Page
<TriggerGroup> searchGroupedTriggers
(TriggerSearch search, org.springframework.data.domain.Pageable page) org.springframework.data.domain.Page
<RunningTriggerEntity> searchTriggers
(TriggerSearch search, org.springframework.data.domain.Pageable page)
-
Constructor Details
-
ReadTriggerComponent
public ReadTriggerComponent()
-
-
Method Details
-
countByTaskName
-
countByStatus
-
get
-
hasPendingTriggers
public boolean hasPendingTriggers()Checks if any job is still running or waiting for it's execution. -
findTriggersLastPingAfter
Searches for all triggers which are still running but the ping is long ago.- Parameters:
dateTime
- the ping should be before this date- Returns:
- all found triggers - never
null
-
searchTriggers
public org.springframework.data.domain.Page<RunningTriggerEntity> searchTriggers(@Nullable TriggerSearch search, org.springframework.data.domain.Pageable page) -
searchGroupedTriggers
public org.springframework.data.domain.Page<TriggerGroup> searchGroupedTriggers(@Nullable TriggerSearch search, org.springframework.data.domain.Pageable page) -
listTriggers
public org.springframework.data.domain.Page<RunningTriggerEntity> listTriggers(TaskId<? extends Serializable> task, org.springframework.data.domain.Pageable page) -
findTriggersTimeoutOut
-