codelipenghui commented on code in PR #19844:
URL: https://github.com/apache/pulsar/pull/19844#discussion_r1141615371
##########
pulsar-common/src/main/java/org/apache/pulsar/common/util/FutureUtil.java:
##########
@@ -166,6 +168,39 @@ public static Throwable
unwrapCompletionException(Throwable ex) {
}
}
+ @ThreadSafe
+ public static class Sequencer<T> {
+ private CompletableFuture<T> sequencerFuture =
CompletableFuture.completedFuture(null);
+ private final boolean allowExceptionBreakChain;
+
+ public Sequencer(boolean allowExceptionBreakChain) {
+ this.allowExceptionBreakChain = allowExceptionBreakChain;
+ }
+
+ public static <T> Sequencer<T> create(boolean allowExceptionBreakLink)
{
Review Comment:
```suggestion
public static <T> Sequencer<T> create(boolean
allowExceptionBreakChain) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]