Interface CallbackExecutor

All Known Implementing Classes:
DefaultCallbackExecutor, NoopCallbackExecutor

public interface CallbackExecutor
Executes the callbacks for a specific event.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes the callbacks for an "each" event within the same transaction (if any) as the main operation.
    void
    onEvent(Event event)
    Executes the callbacks for this event on the main connection, within a separate transaction per callback if possible.
    void
    Executes the callbacks for this event on the migration connection, within a separate transaction per callback if possible.
    void
    onOperationFinishEvent(Event event, OperationResult operationResult)
    Executes the callbacks for an operation finish event.
    void
    Sets the current migration info.
  • Method Details

    • onEvent

      void onEvent(Event event)
      Executes the callbacks for this event on the main connection, within a separate transaction per callback if possible.
      Parameters:
      event - The event to handle.
    • onMigrateEvent

      void onMigrateEvent(Event event)
      Executes the callbacks for this event on the migration connection, within a separate transaction per callback if possible.
      Parameters:
      event - The event to handle.
    • setMigrationInfo

      void setMigrationInfo(MigrationInfo migrationInfo)
      Sets the current migration info.
      Parameters:
      migrationInfo - The current migration.
    • onEachMigrateEvent

      void onEachMigrateEvent(Event event)
      Executes the callbacks for an "each" event within the same transaction (if any) as the main operation.
      Parameters:
      event - The event to handle.
    • onOperationFinishEvent

      void onOperationFinishEvent(Event event, OperationResult operationResult)
      Executes the callbacks for an operation finish event.
      Parameters:
      event - The event to handle.
      operationResult - The operation result.