Class DefaultCallbackExecutor

    • Constructor Detail

      • DefaultCallbackExecutor

        public DefaultCallbackExecutor​(Configuration configuration,
                                       Database database,
                                       Schema schema,
                                       Collection<Callback> callbacks)
        Creates a new callback executor.
        Parameters:
        configuration - The configuration.
        database - The database.
        schema - The current schema to use for the connection.
        callbacks - The callbacks to execute.
    • Method Detail

      • onEvent

        public void onEvent​(Event event)
        Description copied from interface: CallbackExecutor
        Executes the callbacks for this event on the main connection, within a separate transaction per callback if possible.
        Specified by:
        onEvent in interface CallbackExecutor
        Parameters:
        event - The event to handle.
      • onMigrateEvent

        public void onMigrateEvent​(Event event)
        Description copied from interface: CallbackExecutor
        Executes the callbacks for this event on the migration connection, within a separate transaction per callback if possible.
        Specified by:
        onMigrateEvent in interface CallbackExecutor
        Parameters:
        event - The event to handle.
      • onEachMigrateEvent

        public void onEachMigrateEvent​(Event event)
        Description copied from interface: CallbackExecutor
        Executes the callbacks for an "each" event within the same transaction (if any) as the main operation.
        Specified by:
        onEachMigrateEvent in interface CallbackExecutor
        Parameters:
        event - The event to handle.