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 voidonError(java.lang.Throwable t)Failed terminal state.voidonNext(T t)Data notification sent by thePublisherin 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 thePublisherin 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
-
-