@Override
  public boolean equals(final Object other) {
    if (other == null || !(other instanceof Action)) {
      return false;
    }

    if (other == this) {
      return true;
    }

    Action otherAction = (Action) other;
    return type == otherAction.type && Objects.equals(poolName, otherAction.poolName);
  }
Action that gets invoked for trigger violations.
ql/src/java/org/apache/hadoop/hive/ql/wm/Action.java