Package com.atlassian.jira.util.thread
Interface JiraThreadLocalUtil.WarningCallback
- Enclosing interface:
JiraThreadLocalUtil
@PublicSpi
public static interface JiraThreadLocalUtil.WarningCallback
This interface is used as a callback mechanism in the case where "runnable code" has completed
and the
postCall determines that it did not clean
up properly. Typically, all that can be done is to log the problem, but this interface
allows the detection of the problem and its logging to be separated, as the caller may be
able to provide more helpful information.-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when thepostCalldetermines that the runnable code began adatabase transactionand failed tocommitorrollbackthe transaction before it finished.
-
Method Details
-
onOpenTransaction
void onOpenTransaction()Called when thepostCalldetermines that the runnable code began adatabase transactionand failed tocommitorrollbackthe transaction before it finished.This could result in data inconsistencies, so the runnable code should be fixed to handle transactions properly.
-