public static class JmsConnectionConfig.Builder extends Object
| Constructor and Description |
|---|
Builder(String name)
Creates a new configuration
|
| Modifier and Type | Method and Description |
|---|---|
JmsConnectionConfig |
build() |
JmsConnectionConfig.Builder |
setClientId(String clientId)
Sets the client ID on the created JMS connections
|
JmsConnectionConfig.Builder |
setExceptionListener(javax.jms.ExceptionListener exceptionListener)
Sets the exception to manage JMS errors
|
JmsConnectionConfig.Builder |
setMaxIdleTime(int maxIdleTime)
Sets the amount of seconds a pooled XA connection can remain idle before it's eligible for eviction
|
JmsConnectionConfig.Builder |
setMaxPoolSize(int maxPoolSize)
Sets the maximum size for the XA connection pool
|
JmsConnectionConfig.Builder |
setMinPoolSize(int minPoolSize)
Sets the minimum size for the XA connection pool
|
JmsConnectionConfig.Builder |
setPassword(String password)
Sets the configuration password
|
JmsConnectionConfig.Builder |
setReuseSessions(boolean reuseSessions)
Indicates if the config must reuse JMS sessions
|
JmsConnectionConfig.Builder |
setUserName(String userName)
Sets the configuration username
|
public Builder(String name)
name - name that identifies the connection. Non emptypublic JmsConnectionConfig.Builder setExceptionListener(javax.jms.ExceptionListener exceptionListener)
exceptionListener - listener used to manage JMS errors.public JmsConnectionConfig.Builder setReuseSessions(boolean reuseSessions)
reuseSessions - true if sessions must be reused, false otherwise.public JmsConnectionConfig.Builder setClientId(String clientId)
clientId - ID to use on the created connectionspublic JmsConnectionConfig.Builder setPassword(String password)
password - password used to connect to the JMS brokerpublic JmsConnectionConfig.Builder setUserName(String userName)
userName - username used to connect to the JMS brokerpublic JmsConnectionConfig.Builder setMinPoolSize(int minPoolSize)
minPoolSize - the sizethis builderpublic JmsConnectionConfig.Builder setMaxPoolSize(int maxPoolSize)
maxPoolSize - the sizethis builderpublic JmsConnectionConfig.Builder setMaxIdleTime(int maxIdleTime)
maxIdleTime - the idle time in secondsthis builderpublic JmsConnectionConfig build()
Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.