Enum NoopCallbackExecutor
- java.lang.Object
-
- java.lang.Enum<NoopCallbackExecutor>
-
- migratedb.v1.core.internal.callback.NoopCallbackExecutor
-
- All Implemented Interfaces:
Serializable,Comparable<NoopCallbackExecutor>,CallbackExecutor
public enum NoopCallbackExecutor extends Enum<NoopCallbackExecutor> implements CallbackExecutor
A callback executor that does nothing.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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.static NoopCallbackExecutorvalueOf(String name)Returns the enum constant of this type with the specified name.static NoopCallbackExecutor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final NoopCallbackExecutor INSTANCE
-
-
Method Detail
-
values
public static NoopCallbackExecutor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NoopCallbackExecutor c : NoopCallbackExecutor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoopCallbackExecutor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
onEvent
public void onEvent(Event event)
Description copied from interface:CallbackExecutorExecutes the callbacks for this event on the main connection, within a separate transaction per callback if possible.- Specified by:
onEventin interfaceCallbackExecutor- Parameters:
event- The event to handle.
-
onMigrateEvent
public void onMigrateEvent(Event event)
Description copied from interface:CallbackExecutorExecutes the callbacks for this event on the migration connection, within a separate transaction per callback if possible.- Specified by:
onMigrateEventin interfaceCallbackExecutor- Parameters:
event- The event to handle.
-
setMigrationInfo
public void setMigrationInfo(MigrationInfo migrationInfo)
Description copied from interface:CallbackExecutorSets the current migration info.- Specified by:
setMigrationInfoin interfaceCallbackExecutor- Parameters:
migrationInfo- The current migration.
-
onEachMigrateEvent
public void onEachMigrateEvent(Event event)
Description copied from interface:CallbackExecutorExecutes the callbacks for an "each" event within the same transaction (if any) as the main operation.- Specified by:
onEachMigrateEventin interfaceCallbackExecutor- Parameters:
event- The event to handle.
-
onOperationFinishEvent
public void onOperationFinishEvent(Event event, OperationResult operationResult)
Description copied from interface:CallbackExecutorExecutes the callbacks for an operation finish event.- Specified by:
onOperationFinishEventin interfaceCallbackExecutor- Parameters:
event- The event to handle.operationResult- The operation result.
-
-