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) 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
<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
-
searchTriggers
public org.springframework.data.domain.Page<RunningTriggerEntity> searchTriggers(@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
-