Interface CallbackExecutor
- All Known Implementing Classes:
DefaultCallbackExecutor,NoopCallbackExecutor
public interface CallbackExecutor
Executes the callbacks for a specific event.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEachMigrateEvent(Event event) Executes the callbacks for an "each" event within the same transaction (if any) as the main operation.voidExecutes the callbacks for this event on the main connection, within a separate transaction per callback if possible.voidonMigrateEvent(Event event) Executes the callbacks for this event on the migration connection, within a separate transaction per callback if possible.voidonOperationFinishEvent(Event event, OperationResult operationResult) Executes the callbacks for an operation finish event.voidsetMigrationInfo(MigrationInfo migrationInfo) Sets the current migration info.
-
Method Details
-
onEvent
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
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
Sets the current migration info.- Parameters:
migrationInfo- The current migration.
-
onEachMigrateEvent
Executes the callbacks for an "each" event within the same transaction (if any) as the main operation.- Parameters:
event- The event to handle.
-
onOperationFinishEvent
Executes the callbacks for an operation finish event.- Parameters:
event- The event to handle.operationResult- The operation result.
-