1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.util.concurrent;
17
18
19
20
21 public interface ProgressivePromise<V> extends Promise<V>, ProgressiveFuture<V> {
22
23
24
25
26
27 ProgressivePromise<V> setProgress(long progress, long total);
28
29
30
31
32
33
34 boolean tryProgress(long progress, long total);
35
36 @Override
37 ProgressivePromise<V> setSuccess(V result);
38
39 @Override
40 ProgressivePromise<V> setFailure(Throwable cause);
41
42 @Override
43 ProgressivePromise<V> addListener(GenericFutureListener<? extends Future<? super V>> listener);
44
45 @Override
46 ProgressivePromise<V> addListeners(GenericFutureListener<? extends Future<? super V>>... listeners);
47
48 @Override
49 ProgressivePromise<V> removeListener(GenericFutureListener<? extends Future<? super V>> listener);
50
51 @Override
52 ProgressivePromise<V> removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners);
53
54 @Override
55 ProgressivePromise<V> await() throws InterruptedException;
56
57 @Override
58 ProgressivePromise<V> awaitUninterruptibly();
59
60 @Override
61 ProgressivePromise<V> sync() throws InterruptedException;
62
63 @Override
64 ProgressivePromise<V> syncUninterruptibly();
65 }