public static <M> Trigger<M> timeSinceLastMessage(Duration duration) {
    return new TimeSinceLastMessageTrigger<M>(duration);
  }
Creates a trigger that fires when there is no new message for the specified duration in the pane.

@param duration the duration since the last element
@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