Package io.quarkus.grpc.stubs
Class ManyToOneObserver<I,O>
- java.lang.Object
-
- io.smallrye.mutiny.operators.AbstractUni<O>
-
- io.quarkus.grpc.stubs.ManyToOneObserver<I,O>
-
- All Implemented Interfaces:
io.grpc.stub.StreamObserver<O>,io.smallrye.mutiny.Uni<O>
public class ManyToOneObserver<I,O> extends io.smallrye.mutiny.operators.AbstractUni<O> implements io.grpc.stub.StreamObserver<O>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classManyToOneObserver.UpstreamSubscriber
-
Constructor Summary
Constructors Constructor Description ManyToOneObserver(io.smallrye.mutiny.Multi<I> source, Function<io.grpc.stub.StreamObserver<O>,io.grpc.stub.StreamObserver<I>> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCompleted()voidonError(Throwable t)voidonNext(O value)voidsubscribe(io.smallrye.mutiny.subscription.UniSubscriber<? super O> subscriber)-
Methods inherited from class io.smallrye.mutiny.operators.AbstractUni
await, awaitUsing, cache, convert, emitOn, ifNoItem, log, log, memoize, onCancellation, onFailure, onFailure, onFailure, onItem, onItemOrFailure, onSubscription, onTermination, repeat, runSubscriptionOn, subscribe, subscribe, toMulti, withContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.mutiny.Uni
attachContext, call, call, chain, chain, eventually, eventually, flatMap, invoke, invoke, map, plug, replaceIfNullWith, replaceIfNullWith, replaceWith, replaceWith, replaceWith, replaceWithNull, replaceWithVoid, stage, subscribeAsCompletionStage, subscribeAsCompletionStage
-
-
-
-
Method Detail
-
subscribe
public void subscribe(io.smallrye.mutiny.subscription.UniSubscriber<? super O> subscriber)
- Specified by:
subscribein classio.smallrye.mutiny.operators.AbstractUni<O>
-
onNext
public void onNext(O value)
- Specified by:
onNextin interfaceio.grpc.stub.StreamObserver<I>
-
onError
public void onError(Throwable t)
- Specified by:
onErrorin interfaceio.grpc.stub.StreamObserver<I>
-
onCompleted
public void onCompleted()
- Specified by:
onCompletedin interfaceio.grpc.stub.StreamObserver<I>
-
-