Class TumblingWindowTriggerDependencyReference


public final class TumblingWindowTriggerDependencyReference extends TriggerDependencyReference
Referenced tumbling window trigger dependency.
  • Constructor Details

    • TumblingWindowTriggerDependencyReference

      public TumblingWindowTriggerDependencyReference()
  • Method Details

    • offset

      public String offset()
      Get the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency.
      Returns:
      the offset value.
    • withOffset

      Set the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency.
      Parameters:
      offset - the offset value to set.
      Returns:
      the TumblingWindowTriggerDependencyReference object itself.
    • size

      public String size()
      Get the size property: The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used.
      Returns:
      the size value.
    • withSize

      Set the size property: The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used.
      Parameters:
      size - the size value to set.
      Returns:
      the TumblingWindowTriggerDependencyReference object itself.
    • withReferenceTrigger

      public TumblingWindowTriggerDependencyReference withReferenceTrigger(TriggerReference referenceTrigger)
      Set the referenceTrigger property: Referenced trigger.
      Overrides:
      withReferenceTrigger in class TriggerDependencyReference
      Parameters:
      referenceTrigger - the referenceTrigger value to set.
      Returns:
      the TriggerDependencyReference object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class TriggerDependencyReference
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.