Document behavior on reactive tx cancellation

Closes gh-25091
This commit is contained in:
Rossen Stoyanchev
2020-06-08 17:43:52 +01:00
parent 0ccf5e19aa
commit 9e1121fd8d
2 changed files with 25 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,9 +38,10 @@ import org.springframework.transaction.TransactionException;
* application services utilizing this class, making calls to the low-level
* services via an inner-class callback object.
*
* <p>Transactional Publishers should avoid Subscription cancellation.
* Cancelling initiates asynchronous transaction cleanup that does not allow for
* synchronization on completion.
* <p><strong>Note:</strong> Transactional Publishers should avoid Subscription
* cancellation. See the
* <a href="https://docs.spring.io/spring/docs/current/spring-framework-reference/data-access.html#tx-prog-operator-cancel">Cancel Signals</a>
* section of the Spring Framework reference for more details.
*
* @author Mark Paluch
* @author Juergen Hoeller