Class ContextCompletionAwareSubscriber<T>
java.lang.Object
io.micronaut.core.async.subscriber.CompletionAwareSubscriber<T>
io.micronaut.http.server.netty.async.ContextCompletionAwareSubscriber<T>
- Type Parameters:
T
- The type of data being published
- All Implemented Interfaces:
Completable
,Emitter<T>
,Subscriber<T>
@Internal
public abstract class ContextCompletionAwareSubscriber<T>
extends CompletionAwareSubscriber<T>
A subscriber that subscribes to a single result with special handling for the
ChannelHandlerContext
.- Since:
- 1.0
- Author:
- James Kleeh
-
Field Summary
Fields inherited from class io.micronaut.core.async.subscriber.CompletionAwareSubscriber
subscription
-
Constructor Summary
ModifierConstructorDescriptionprotected
ContextCompletionAwareSubscriber
(io.netty.channel.ChannelHandlerContext context) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
ImplementSubscriber.onComplete()
.protected void
ImplementSubscriber.onError(Throwable)
.protected void
ImplementSubscriber.onNext(Object)
.protected void
doOnSubscribe
(Subscription subscription) ImplementSubscriber.onSubscribe(Subscription)
.protected abstract void
onComplete
(T message) Methods inherited from class io.micronaut.core.async.subscriber.CompletionAwareSubscriber
isComplete, onComplete, onError, onNext, onSubscribe
-
Constructor Details
-
ContextCompletionAwareSubscriber
protected ContextCompletionAwareSubscriber(io.netty.channel.ChannelHandlerContext context) - Parameters:
context
- The channel handler context
-
-
Method Details
-
doOnSubscribe
Description copied from class:CompletionAwareSubscriber
ImplementSubscriber.onSubscribe(Subscription)
.- Specified by:
doOnSubscribe
in classCompletionAwareSubscriber<T>
- Parameters:
subscription
- The subscription
-
doOnNext
Description copied from class:CompletionAwareSubscriber
ImplementSubscriber.onNext(Object)
.- Specified by:
doOnNext
in classCompletionAwareSubscriber<T>
- Parameters:
message
- The message
-
doOnError
Description copied from class:CompletionAwareSubscriber
ImplementSubscriber.onError(Throwable)
.- Specified by:
doOnError
in classCompletionAwareSubscriber<T>
- Parameters:
t
- The throwable
-
doOnComplete
protected void doOnComplete()Description copied from class:CompletionAwareSubscriber
ImplementSubscriber.onComplete()
.- Specified by:
doOnComplete
in classCompletionAwareSubscriber<T>
-
onComplete
- Parameters:
message
- The message
-