Interface CallbackExecutor
-
- All Known Implementing Classes:
DefaultCallbackExecutor,NoopCallbackExecutor
public interface CallbackExecutorExecutes the callbacks for a specific event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEachMigrateEvent(Event event)Executes the callbacks for an "each" event within the same transaction (if any) as the main operation.voidonEvent(Event event)Executes 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 Detail
-
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.
-
-