public interface Callback
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canHandleInTransaction(Event event,
Context context)
Whether this event can be handled in a transaction or whether it must be handled outside a transaction instead.
|
void |
handle(Event event,
Context context)
Handles this Flyway lifecycle event.
|
boolean |
supports(Event event,
Context context)
Whether this callback supports this event or not.
|
boolean supports(Event event, Context context)
event - The event to check.context - The context for this event.true if it can be handled, false if not.boolean canHandleInTransaction(Event event, Context context)
true. Only in the rare cases where non-transactional statements are executed should this return false.
This method is called before handle(Event, Context) in order to determine in advance whether a transaction
can be used or not.event - The event to check.context - The context for this event.true if it can be handled within a transaction (almost all cases). false if it must be
handled outside a transaction instead (very rare).Copyright © 2022. All rights reserved.