Uses of Enum Class
com.pyranid.TransactionResult
-
Uses of TransactionResult in com.pyranid
Subclasses with type arguments of type TransactionResult in com.pyranidModifier and TypeClassDescriptionenumIndicates the transaction result reported to post-transaction operations and completion observers.Methods in com.pyranid that return TransactionResultModifier and TypeMethodDescriptionTransactionCompletion.getResult()Gets this boundary's database outcome.TransactionOutcome.getResult()Gets this boundary's database result, independently of the callback value and invocation failure.PostTransactionOperationException.getTransactionResult()static TransactionResultReturns the enum constant of this class with the specified name.static TransactionResult[]TransactionResult.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.pyranid that return types with arguments of type TransactionResultModifier and TypeMethodDescriptionTransaction.getPostTransactionOperations()Gets an unmodifiable list of post-transaction operations.Methods in com.pyranid with parameters of type TransactionResultModifier and TypeMethodDescriptiondefault voidMetricsCollector.didRunPostTransactionOperation(@NonNull Transaction transaction, @NonNull TransactionResult result, @NonNull DatabaseType databaseType, @NonNull Duration duration, @Nullable Throwable throwable) Called after a post-transaction operation runs.Method parameters in com.pyranid with type arguments of type TransactionResultModifier and TypeMethodDescriptionvoidTransaction.addPostTransactionOperation(@NonNull Consumer<TransactionResult> postTransactionOperation) Adds an operation to the list of operations to be executed when the transaction completes.Transaction.removePostTransactionOperation(@NonNull Consumer<TransactionResult> postTransactionOperation) Removes an operation from the list of operations to be executed when the transaction completes.Constructors in com.pyranid with parameters of type TransactionResultModifierConstructorDescriptionPostTransactionOperationException(@NonNull TransactionResult transactionResult, @NonNull Throwable cause) Creates aPostTransactionOperationExceptionfor a failed post-transaction operation.