AFTER_FLUSH

BEFORE_COMMIT

public static final int BEFORE_COMMIT

Event type signifying that the transaction is about to be committed.
This will be fired before the BEFORE_FLUSH event for the
transaction, so that you can differentiate between flushes for commits
and other flushes.