Class AqConnectorImpl
- java.lang.Object
-
- io.helidon.messaging.connectors.jms.JmsConnector
-
- io.helidon.messaging.connectors.aq.AqConnectorImpl
-
- All Implemented Interfaces:
AqConnector
,Stoppable
,ConnectorFactory
,IncomingConnectorFactory
,OutgoingConnectorFactory
@ApplicationScoped public class AqConnectorImpl extends JmsConnector implements AqConnector
MicroProfile Reactive Messaging Oracle AQ connector.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.helidon.messaging.connectors.jms.JmsConnector
JmsConnector.JmsConnectorBuilder
-
Nested classes/interfaces inherited from interface io.helidon.messaging.connectors.aq.AqConnector
AqConnector.AqConnectorBuilder
-
-
Field Summary
-
Fields inherited from class io.helidon.messaging.connectors.jms.JmsConnector
CLIENT_ID_ATTRIBUTE, CONNECTOR_NAME, DURABLE_ATTRIBUTE, NAMED_FACTORY_ATTRIBUTE, NON_LOCAL_ATTRIBUTE, PASSWORD_ATTRIBUTE, SUBSCRIBER_NAME_ATTRIBUTE, USERNAME_ATTRIBUTE
-
Fields inherited from interface io.helidon.messaging.connectors.aq.AqConnector
CONNECTOR_NAME, DATASOURCE_ATTRIBUTE, EXECUTOR_THREAD_NAME_PREFIX, SCHEDULER_THREAD_NAME_PREFIX, URL_ATTRIBUTE
-
Fields inherited from interface org.eclipse.microprofile.reactive.messaging.spi.ConnectorFactory
CHANNEL_NAME_ATTRIBUTE, CONNECTOR_ATTRIBUTE, CONNECTOR_PREFIX, INCOMING_PREFIX, OUTGOING_PREFIX
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JmsMessage<?>
createMessage(javax.jms.Message message, Executor executor, SessionMetadata sessionMetadata)
Create reactive messaging message from JMS message.protected Optional<? extends javax.jms.ConnectionFactory>
getFactory(ConnectionContext ctx)
Find correct ConnectionFactory for channel.protected BiConsumer<Message<?>,javax.jms.JMSException>
sendingErrorHandler(Config config)
Customizable handler for errors during sending.void
stop()
Invoked duringMessaging.stop()
.-
Methods inherited from class io.helidon.messaging.connectors.jms.JmsConnector
builder, configBuilder, create, getPublisherBuilder, getSubscriberBuilder
-
-
-
-
Method Detail
-
getFactory
protected Optional<? extends javax.jms.ConnectionFactory> getFactory(ConnectionContext ctx)
Description copied from class:JmsConnector
Find correct ConnectionFactory for channel.- Overrides:
getFactory
in classJmsConnector
- Parameters:
ctx
- Channel's context- Returns:
- appropriate connection factory
-
createMessage
protected JmsMessage<?> createMessage(javax.jms.Message message, Executor executor, SessionMetadata sessionMetadata)
Description copied from class:JmsConnector
Create reactive messaging message from JMS message.- Overrides:
createMessage
in classJmsConnector
- Parameters:
message
- JMS messageexecutor
- executor used for async execution of acksessionMetadata
- JMS session metadata- Returns:
- reactive messaging message extended with custom JMS features
-
sendingErrorHandler
protected BiConsumer<Message<?>,javax.jms.JMSException> sendingErrorHandler(Config config)
Description copied from class:JmsConnector
Customizable handler for errors during sending.- Overrides:
sendingErrorHandler
in classJmsConnector
- Parameters:
config
- channel's config- Returns:
- consumer of errors
-
stop
public void stop()
Description copied from interface:Stoppable
Invoked duringMessaging.stop()
.- Specified by:
stop
in interfaceStoppable
- Overrides:
stop
in classJmsConnector
-
-