All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.smallrye.reactive.messaging.EmitterFactory Maven / Gradle / Ivy

The newest version!
package io.smallrye.reactive.messaging;

/**
 * Factory for creating different Emitter implementations.
 * 

* The implementation need to be provided as an {@code ApplicationScoped} bean * qualified with {@link io.smallrye.reactive.messaging.annotations.EmitterFactoryFor}, * which contains the public interface of the Emitter. *

* Emitter implementations created by this factory are registered to {@link io.smallrye.reactive.messaging.ChannelRegistry}. *

* Custom implementations can provide a CDI {@code @Produces} method to make their custom Emitter interface injectable into * managed beans. * * @param emitter implementation type, extends {@link MessagePublisherProvider} */ public interface EmitterFactory> { /** * Create emitter implementation instance * * @param configuration emitter configuration * @param defaultBufferSize default buffer size * @return Emitter implementation */ T createEmitter(EmitterConfiguration configuration, long defaultBufferSize); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy