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