public static <M> Trigger<M> repeat(Trigger<M> trigger) {
    return new RepeatingTrigger<>(trigger);
  }
Repeats the provided trigger forever.

<p>Creating a {@link RepeatingTrigger} from an {@link AnyTrigger} is equivalent to creating an {@link AnyTrigger} from
its individual {@link RepeatingTrigger}s.

@param trigger the individual trigger to repeat
@param <M> the type of input message in the window
@return the created trigger
samza-api/src/main/java/org/apache/samza/operators/triggers/Triggers.java