Class ReadTriggerComponent

java.lang.Object
org.sterl.spring.persistent_tasks.trigger.component.ReadTriggerComponent

@TransactionalCompontant public class ReadTriggerComponent extends Object
  • Constructor Details

    • ReadTriggerComponent

      public ReadTriggerComponent()
  • Method Details

    • countByTaskName

      public long countByTaskName(@NotNull @NotNull String name)
    • countByStatus

      public long countByStatus(@Nullable TriggerStatus status)
    • get

      public Optional<TriggerEntity> get(TriggerKey id)
    • hasPendingTriggers

      public boolean hasPendingTriggers()
      Checks if any job is still running or waiting for it's execution.
    • findTriggersLastPingAfter

      public List<TriggerEntity> findTriggersLastPingAfter(OffsetDateTime dateTime)
    • 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)