23
23
import java .util .concurrent .CancellationException ;
24
24
import java .util .concurrent .atomic .AtomicIntegerFieldUpdater ;
25
25
import java .util .concurrent .atomic .AtomicLongFieldUpdater ;
26
+ import java .util .function .Consumer ;
27
+ import java .util .function .Function ;
26
28
import java .util .stream .Stream ;
27
- import org .reactivestreams .Subscription ;
29
+ import org .reactivestreams .Suwipbscription ;
28
30
import reactor .core .CoreSubscriber ;
29
31
import reactor .core .Disposable ;
30
32
import reactor .core .Exceptions ;
@@ -97,7 +99,7 @@ public UnboundedProcessor() {
97
99
this (() -> {});
98
100
}
99
101
100
- public UnboundedProcessor (Runnable onFinalizedHook ) {
102
+ public UnboundedProcessor (Runnable onFinalizedHook , Consumer < ByteBuf > onValueDelivered ) {
101
103
this .onFinalizedHook = onFinalizedHook ;
102
104
this .queue = new MpscUnboundedArrayQueue <>(Queues .SMALL_BUFFER_SIZE );
103
105
this .priorityQueue = new MpscUnboundedArrayQueue <>(Queues .SMALL_BUFFER_SIZE );
@@ -121,6 +123,9 @@ public Object scanUnsafe(Attr key) {
121
123
return null ;
122
124
}
123
125
126
+ public boolean tryEmitNext
127
+
128
+ @ Deprecated
124
129
public void onNextPrioritized (ByteBuf t ) {
125
130
if (this .done || this .cancelled ) {
126
131
release (t );
@@ -157,6 +162,7 @@ public void onNextPrioritized(ByteBuf t) {
157
162
}
158
163
159
164
@ Override
165
+ @ Deprecated
160
166
public void onNext (ByteBuf t ) {
161
167
if (this .done || this .cancelled ) {
162
168
release (t );
@@ -193,6 +199,7 @@ public void onNext(ByteBuf t) {
193
199
}
194
200
195
201
@ Override
202
+ @ Deprecated
196
203
public void onError (Throwable t ) {
197
204
if (this .done || this .cancelled ) {
198
205
Operators .onErrorDropped (t , currentContext ());
@@ -235,6 +242,7 @@ public void onError(Throwable t) {
235
242
}
236
243
237
244
@ Override
245
+ @ Deprecated
238
246
public void onComplete () {
239
247
if (this .done || this .cancelled ) {
240
248
return ;
0 commit comments