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) findTriggerByCorrelationId
(String correlationId, org.springframework.data.domain.Pageable page) findTriggersLastPingAfter
(OffsetDateTime dateTime) get
(TriggerKey id) boolean
Checks if any job is still running or waiting for it's execution.org.springframework.data.domain.Page
<TriggerEntity> listTriggers
(TaskId<? extends Serializable> task, org.springframework.data.domain.Pageable page) org.springframework.data.domain.Page
<TriggerEntity> listTriggers
(TriggerKey key, TriggerStatus status, 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
-
listTriggers
public org.springframework.data.domain.Page<TriggerEntity> listTriggers(@Nullable TriggerKey key, @Nullable TriggerStatus status, org.springframework.data.domain.Pageable page) -
listTriggers
public org.springframework.data.domain.Page<TriggerEntity> listTriggers(TaskId<? extends Serializable> task, org.springframework.data.domain.Pageable page) -
findTriggerByCorrelationId
public List<TriggerEntity> findTriggerByCorrelationId(String correlationId, org.springframework.data.domain.Pageable page)
-