APISonar


io.ebean.event.changelog.ChangeLogListener.log

> io > ebean > event > changelog > ChangeLogListener > log
io APIs ebean APIs event APIs changelog APIs ChangeLogListener APIs log APIs

Example 1
private final ChangeLogListener changeLogListener;

  void sendChangeLog(final ChangeSet changeSet) {

    // can set userId, userIpAddress & userContext if desired
    if (changeLogPrepare.prepare(changeSet)) {

      if (changeLogAsync) {
        // call the log method in background
        backgroundExecutor.execute(() -> changeLogListener.log(changeSet));
      } else {
        changeLogListener.log(changeSet);
      }
    }
  }