Class TypedSubscriber<T>
- java.lang.Object
-
- io.micronaut.core.async.subscriber.CompletionAwareSubscriber<T>
-
- io.micronaut.core.async.subscriber.TypedSubscriber<T>
-
- Type Parameters:
T
- Type of TypedSubscriber
- All Implemented Interfaces:
Completable
,Emitter<T>
,org.reactivestreams.Subscriber<T>
public abstract class TypedSubscriber<T> extends CompletionAwareSubscriber<T>
A subscriber that is aware of the target type.- Since:
- 1.0
-
-
Field Summary
-
Fields inherited from class io.micronaut.core.async.subscriber.CompletionAwareSubscriber
subscription
-
-
Constructor Summary
Constructors Constructor Description TypedSubscriber(io.micronaut.core.type.Argument<T> typeArgument)
Constructs a newTypedSubscriber
for the givenArgument
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.core.type.Argument<T>
getTypeArgument()
-
Methods inherited from class io.micronaut.core.async.subscriber.CompletionAwareSubscriber
doOnComplete, doOnError, doOnNext, doOnSubscribe, isComplete, onComplete, onError, onNext, onSubscribe
-
-
-
-
Constructor Detail
-
TypedSubscriber
public TypedSubscriber(io.micronaut.core.type.Argument<T> typeArgument)
Constructs a newTypedSubscriber
for the givenArgument
.- Parameters:
typeArgument
- The type argument
-
-
Method Detail
-
getTypeArgument
public io.micronaut.core.type.Argument<T> getTypeArgument()
- Returns:
- The type argument
-
-