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.Methods in com.pyranid that return TransactionResultModifier and TypeMethodDescription@NonNull TransactionResultPostTransactionOperationException.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 TypeMethodDescription@NonNull List<@NonNull Consumer<TransactionResult>> Transaction.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.@NonNull BooleanTransaction.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.