Class JmsConnector.JmsConnectorBuilder
java.lang.Object
io.helidon.messaging.connectors.jms.JmsConnector.JmsConnectorBuilder
- All Implemented Interfaces:
Builder<JmsConnector.JmsConnectorBuilder,
,JmsConnector> Supplier<JmsConnector>
- Enclosing class:
JmsConnector
public static class JmsConnector.JmsConnectorBuilder
extends Object
implements Builder<JmsConnector.JmsConnectorBuilder,JmsConnector>
Builder for
JmsConnector
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Custom configuration for connector.connectionFactory
(String name, jakarta.jms.ConnectionFactory connectionFactory) Add customConnectionFactory
referencable by supplied name withJmsConnector.NAMED_FACTORY_ATTRIBUTE
.executor
(ThreadPoolSupplier executorSupplier) Custom executor supplier for asynchronous operations like acknowledgement.executor
(ExecutorService executor) Custom executor for asynchronous operations like acknowledgement.scheduler
(ScheduledThreadPoolSupplier schedulerPoolSupplier) Custom executor supplier for loop pulling messages from JMS.scheduler
(ScheduledExecutorService scheduler) Custom executor for loop pulling messages from JMS.
-
Constructor Details
-
JmsConnectorBuilder
public JmsConnectorBuilder()
-
-
Method Details
-
connectionFactory
public JmsConnector.JmsConnectorBuilder connectionFactory(String name, jakarta.jms.ConnectionFactory connectionFactory) Add customConnectionFactory
referencable by supplied name withJmsConnector.NAMED_FACTORY_ATTRIBUTE
.- Parameters:
name
- referencable connection factory nameconnectionFactory
- custom connection factory- Returns:
- this builder
-
config
Custom configuration for connector.- Parameters:
config
- custom config- Returns:
- this builder
-
executor
Custom executor for asynchronous operations like acknowledgement.- Parameters:
executor
- custom executor service- Returns:
- this builder
-
scheduler
Custom executor for loop pulling messages from JMS.- Parameters:
scheduler
- custom scheduled executor service- Returns:
- this builder
-
executor
Custom executor supplier for asynchronous operations like acknowledgement.- Parameters:
executorSupplier
- custom executor service- Returns:
- this builder
-
scheduler
public JmsConnector.JmsConnectorBuilder scheduler(ScheduledThreadPoolSupplier schedulerPoolSupplier) Custom executor supplier for loop pulling messages from JMS.- Parameters:
schedulerPoolSupplier
- custom scheduled executor service- Returns:
- this builder
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<JmsConnector.JmsConnectorBuilder,
JmsConnector> - Returns:
- instance of the built type
-