Interface ProcessTimer<P>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ProcessTimer<P>
Calculates when a durable timer node becomes eligible to continue.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <P> ProcessTimer<P>
    after(Duration delay)
    Create a timer due after a fixed duration from the time the node is entered.
    static <P> ProcessTimer<P>
    at(Function<P,Instant> dueAt)
    Create a timer due at an absolute time derived from the process payload.
    dueAt(P payload, Instant now)
    Calculate an absolute due time from the payload and the runtime's current time.
  • Method Details

    • dueAt

      Instant dueAt(P payload, Instant now)
      Calculate an absolute due time from the payload and the runtime's current time.
    • after

      static <P> ProcessTimer<P> after(Duration delay)
      Create a timer due after a fixed duration from the time the node is entered.
    • at

      static <P> ProcessTimer<P> at(Function<P,Instant> dueAt)
      Create a timer due at an absolute time derived from the process payload.