@Override
    public final boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ApplicationEvent that = (ApplicationEvent) o;
        return type == that.type && id.equals(that.id);
    }
This identifies a particular event. It is used to disambiguate events via {@link #hashCode()} and
{@link #equals(Object)} and can be used in log messages when debugging.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEvent.java