File tree Expand file tree Collapse file tree 17 files changed +71
-17
lines changed Expand file tree Collapse file tree 17 files changed +71
-17
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
31
31
import reactor .util .Loggers ;
32
32
import reactor .util .annotation .Nullable ;
33
33
34
+ /*
35
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat or
36
+ * reactor.util.retry available since reactor-core 3.8.0 which provides similar
37
+ * capabilities.
38
+ */
39
+ @ Deprecated
34
40
public abstract class AbstractRetry <T , S > implements Function <Flux <S >, Publisher <Long >> {
35
41
36
42
static final Logger log = Loggers .getLogger (AbstractRetry .class );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2022 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
24
24
/**
25
25
* Backoff function
26
26
*
27
+ * @deprecated To be removed in 3.7.0 at the earliest.
28
+ * Use reactor.util.repeat or reactor.util.retry available since reactor-core 3.8.0
29
+ * which provides similar capabilities.
27
30
*/
31
+ @ Deprecated
28
32
public interface Backoff extends Function <IterationContext <?>, BackoffDelay > {
29
33
30
34
Backoff ZERO_BACKOFF = new Backoff () {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
18
18
19
19
import java .time .Duration ;
20
20
21
+ /*
22
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat or
23
+ * reactor.util.retry available since reactor-core 3.8.0 which provides similar
24
+ * capabilities.
25
+ */
26
+ @ Deprecated
21
27
public class BackoffDelay {
22
28
23
29
static final BackoffDelay ZERO = new BackoffDelay (Duration .ZERO ) {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
18
18
19
19
import java .time .Duration ;
20
20
21
+ /*
22
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat or
23
+ * reactor.util.retry available since reactor-core 3.8.0 which provides similar
24
+ * capabilities.
25
+ */
26
+ @ Deprecated
21
27
public class DefaultContext <T > implements RetryContext <T >, RepeatContext <T > {
22
28
23
29
final T applicationContext ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
28
28
import reactor .util .Logger ;
29
29
import reactor .util .Loggers ;
30
30
31
+ /*
32
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat.RepeatSpec
33
+ * available since reactor-core 3.8.0 which provides similar capabilities.
34
+ */
35
+ @ Deprecated
31
36
public class DefaultRepeat <T > extends AbstractRetry <T , Long > implements Repeat <T > {
32
37
33
38
static final Logger log = Loggers .getLogger (DefaultRepeat .class );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
22
22
* Context provided to retry or repeat callbacks.
23
23
*
24
24
* @param <T> Application context type
25
+ *
26
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat or
27
+ * reactor.util.retry available since reactor-core 3.8.0 which provides similar
28
+ * capabilities.
25
29
*/
30
+ @ Deprecated
26
31
public interface IterationContext <T > {
27
32
28
33
/**
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
23
23
/**
24
24
* Jitter function that is applied to the backoff delay.
25
25
*
26
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat or
27
+ * reactor.util.retry available since reactor-core 3.8.0 which provides similar
28
+ * capabilities.
26
29
*/
30
+ @ Deprecated
27
31
public interface Jitter extends Function <BackoffDelay , Duration > {
28
32
29
33
Jitter NO_JITTER = new Jitter () {
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2018-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2018-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
24
24
* maintain that invariant on the randomized {@literal d}.
25
25
*
26
26
* @author Simon Baslé
27
+ *
28
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat or
29
+ * reactor.util.retry available since reactor-core 3.8.0 which provides similar
30
+ * capabilities.
27
31
*/
32
+ @ Deprecated
28
33
class RandomJitter implements Jitter {
29
34
30
35
private final double randomFactor ;
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
52
52
* to change both the timeout and limit the attempts.
53
53
*
54
54
* @param <T> Application context type
55
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat.RepeatSpec
56
+ * available since reactor-core 3.8.0 which provides similar capabilities.
55
57
*/
58
+ @ Deprecated
56
59
public interface Repeat <T > extends Function <Flux <Long >, Publisher <Long >> {
57
60
58
61
/**
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2017-2021 VMware Inc. or its affiliates, All Rights Reserved.
2
+ * Copyright (c) 2017-2025 VMware Inc. or its affiliates, All Rights Reserved.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
24
24
* the repeat callback {@link Repeat#doOnRepeat(java.util.function.Consumer)}.
25
25
*
26
26
* @param <T> Application context type
27
+ * @deprecated To be removed in 3.7.0 at the earliest. Use reactor.util.repeat.RepeatSpec
28
+ * available since reactor-core 3.8.0 which provides similar capabilities.
27
29
*/
30
+ @ Deprecated
28
31
public interface RepeatContext <T > extends IterationContext <T > {
29
32
30
33
/**
You can’t perform that action at this time.
0 commit comments