Class AqConnector.AqConnectorBuilder
java.lang.Object
io.helidon.messaging.connectors.aq.AqConnector.AqConnectorBuilder
- All Implemented Interfaces:
Builder<AqConnector.AqConnectorBuilder,
,AqConnectorImpl> Supplier<AqConnectorImpl>
- Enclosing interface:
AqConnector
public static class AqConnector.AqConnectorBuilder
extends Object
implements Builder<AqConnector.AqConnectorBuilder,AqConnectorImpl>
Builder for
AqConnectorImpl
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Custom configuration for connector.dataSource
(String name, DataSource dataSource) Add customConnectionFactory
referencable by supplied name with "named-factory".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
-
AqConnectorBuilder
public AqConnectorBuilder()
-
-
Method Details
-
dataSource
Add customConnectionFactory
referencable by supplied name with "named-factory".- Parameters:
name
- referencable connection factory namedataSource
- 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
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<AqConnector.AqConnectorBuilder,
AqConnectorImpl> - Returns:
- instance of the built type
-