Class JmsConnector
- java.lang.Object
-
- io.smallrye.reactive.messaging.jms.JmsConnector
-
- All Implemented Interfaces:
ConnectorFactory,IncomingConnectorFactory,OutgoingConnectorFactory
@ApplicationScoped public class JmsConnector extends Object implements IncomingConnectorFactory, OutgoingConnectorFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECTOR_NAMEThe name of the connector:smallrye-jms-
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactory
CHANNEL_NAME_ATTRIBUTE, CONNECTOR_ATTRIBUTE, CONNECTOR_PREFIX, INCOMING_PREFIX, OUTGOING_PREFIX
-
-
Constructor Summary
Constructors Constructor Description JmsConnector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>>getPublisherBuilder(org.eclipse.microprofile.config.Config config)Creates a channel for the given configuration.org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void>getSubscriberBuilder(org.eclipse.microprofile.config.Config config)Creates a channel for the given configuration.voidinit()
-
-
-
Field Detail
-
CONNECTOR_NAME
public static final String CONNECTOR_NAME
The name of the connector:smallrye-jms- See Also:
- Constant Field Values
-
-
Method Detail
-
init
@PostConstruct public void init()
-
cleanup
@PreDestroy public void cleanup()
-
getPublisherBuilder
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<? extends Message<?>> getPublisherBuilder(org.eclipse.microprofile.config.Config config)
Description copied from interface:IncomingConnectorFactoryCreates a channel for the given configuration. The channel's configuration is associated with a specificconnector, using theConnectorqualifier's parameter indicating a key to whichIncomingConnectorFactoryto use.Note that the connection to the transport or broker is generally postponed until the subscription occurs.
- Specified by:
getPublisherBuilderin interfaceIncomingConnectorFactory- Parameters:
config- the configuration, must not benull, must contain theConnectorFactory.CHANNEL_NAME_ATTRIBUTEattribute.- Returns:
- the created
PublisherBuilder, will not benull.
-
getSubscriberBuilder
public org.eclipse.microprofile.reactive.streams.operators.SubscriberBuilder<? extends Message<?>,Void> getSubscriberBuilder(org.eclipse.microprofile.config.Config config)
Description copied from interface:OutgoingConnectorFactoryCreates a channel for the given configuration. The channel's configuration is associated with a specificconnector, using theConnectorqualifier's parameter indicating a key to whichOutgoingto use.Note that the connection to the transport or broker is generally postponed until the subscription.
- Specified by:
getSubscriberBuilderin interfaceOutgoingConnectorFactory- Parameters:
config- the configuration, nevernull, must contain theConnectorFactory.CHANNEL_NAME_ATTRIBUTEattribute.- Returns:
- the created
SubscriberBuilder, must not benull.
-
-