Interface Emitter<T>
-
- Type Parameters:
T
- type of element
- All Superinterfaces:
Completable
- All Known Implementing Classes:
CompletionAwareSubscriber
,SingleSubscriberProcessor
,SingleThreadedBufferingProcessor
,SingleThreadedBufferingSubscriber
,TypedSubscriber
public interface Emitter<T> extends Completable
Base interface for classes that emit data. SeeSubscriber
.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(java.lang.Throwable t)
Failed terminal state.void
onNext(T t)
Data notification sent by thePublisher
in response to requests toSubscription.request(long)
.-
Methods inherited from interface io.micronaut.core.async.subscriber.Completable
onComplete
-
-
-
-
Method Detail
-
onNext
void onNext(T t)
Data notification sent by thePublisher
in response to requests toSubscription.request(long)
.- Parameters:
t
- the element signaled
-
onError
void onError(java.lang.Throwable t)
Failed terminal state.No further events will be sent even if
Subscription.request(long)
is invoked again.- Parameters:
t
- the throwable signaled
-
-