Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Dokuka <[email protected]>
  • Loading branch information
OlegDokuka committed Nov 18, 2022
1 parent 9722189 commit a0440f4
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
import java.util.concurrent.CancellationException;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
import java.util.concurrent.atomic.AtomicLongFieldUpdater;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Stream;
import org.reactivestreams.Subscription;
import org.reactivestreams.Suwipbscription;
import reactor.core.CoreSubscriber;
import reactor.core.Disposable;
import reactor.core.Exceptions;
Expand Down Expand Up @@ -97,7 +99,7 @@ public UnboundedProcessor() {
this(() -> {});
}

public UnboundedProcessor(Runnable onFinalizedHook) {
public UnboundedProcessor(Runnable onFinalizedHook, Consumer<ByteBuf> onValueDelivered) {
this.onFinalizedHook = onFinalizedHook;
this.queue = new MpscUnboundedArrayQueue<>(Queues.SMALL_BUFFER_SIZE);
this.priorityQueue = new MpscUnboundedArrayQueue<>(Queues.SMALL_BUFFER_SIZE);
Expand All @@ -121,6 +123,9 @@ public Object scanUnsafe(Attr key) {
return null;
}

public boolean tryEmitNext

@Deprecated
public void onNextPrioritized(ByteBuf t) {
if (this.done || this.cancelled) {
release(t);
Expand Down Expand Up @@ -157,6 +162,7 @@ public void onNextPrioritized(ByteBuf t) {
}

@Override
@Deprecated
public void onNext(ByteBuf t) {
if (this.done || this.cancelled) {
release(t);
Expand Down Expand Up @@ -193,6 +199,7 @@ public void onNext(ByteBuf t) {
}

@Override
@Deprecated
public void onError(Throwable t) {
if (this.done || this.cancelled) {
Operators.onErrorDropped(t, currentContext());
Expand Down Expand Up @@ -235,6 +242,7 @@ public void onError(Throwable t) {
}

@Override
@Deprecated
public void onComplete() {
if (this.done || this.cancelled) {
return;
Expand Down

0 comments on commit a0440f4

Please sign in to comment.