Class LegacyEmitterImpl<T>
java.lang.Object
io.smallrye.reactive.messaging.providers.extension.LegacyEmitterImpl<T>
- Type Parameters:
T- the type of payload or message
- All Implemented Interfaces:
io.smallrye.reactive.messaging.annotations.Emitter<T>,io.smallrye.reactive.messaging.EmitterType,io.smallrye.reactive.messaging.MessagePublisherProvider<T>
public class LegacyEmitterImpl<T>
extends Object
implements io.smallrye.reactive.messaging.annotations.Emitter<T>, io.smallrye.reactive.messaging.MessagePublisherProvider<T>
Implementation of the old (legacy) Emitter interface.
This implementation delegates to the new implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()voidFlow.Publisher<org.eclipse.microprofile.reactive.messaging.Message<? extends T>> booleanbooleanio.smallrye.reactive.messaging.annotations.Emitter<T>
-
Method Details
-
getPublisher
public Flow.Publisher<org.eclipse.microprofile.reactive.messaging.Message<? extends T>> getPublisher()- Specified by:
getPublisherin interfaceio.smallrye.reactive.messaging.MessagePublisherProvider<T>
-
complete
public void complete()- Specified by:
completein interfaceio.smallrye.reactive.messaging.annotations.Emitter<T>
-
error
- Specified by:
errorin interfaceio.smallrye.reactive.messaging.annotations.Emitter<T>
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceio.smallrye.reactive.messaging.annotations.Emitter<T>
-
isRequested
public boolean isRequested()- Specified by:
isRequestedin interfaceio.smallrye.reactive.messaging.annotations.Emitter<T>
-
send
- Specified by:
sendin interfaceio.smallrye.reactive.messaging.annotations.Emitter<T>
-