public abstract class BaseConnectionProvider extends Object implements org.mule.runtime.api.connection.PoolingConnectionProvider<JmsConnection>, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
PoolingConnectionProvider for JmsConnections| Constructor and Description |
|---|
BaseConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
JmsConnection |
connect() |
protected void |
createJmsSupport()
A jmsConnectionFactory method to create various JmsSupport class versions.
|
void |
disconnect(JmsConnection jmsConnection) |
void |
dispose() |
protected void |
doClose(JmsConnection jmsConnection) |
protected void |
doStop(JmsConnection jmsConnection) |
abstract javax.jms.ConnectionFactory |
getConnectionFactory()
Template method for obtaining the
ConnectionFactory to be used for creating the JmsConnections |
GenericConnectionParameters |
getConnectionParameters() |
JmsSupport |
getJmsSupport() |
void |
initialise() |
void |
onReturn(JmsConnection connection) |
protected void |
setJmsSupport(JmsSupport jmsSupport) |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(JmsConnection jmsConnection) |
public abstract javax.jms.ConnectionFactory getConnectionFactory()
throws Exception
ConnectionFactory to be used for creating the JmsConnectionsConnectionFactory to be used for creating the JmsConnectionsException - if an error occurs while creting the ConnectionFactorypublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic JmsConnection connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<JmsConnection>org.mule.runtime.api.connection.ConnectionExceptionpublic org.mule.runtime.api.connection.ConnectionValidationResult validate(JmsConnection jmsConnection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<JmsConnection>public void disconnect(JmsConnection jmsConnection)
disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<JmsConnection>public void onReturn(JmsConnection connection)
onReturn in interface org.mule.runtime.api.connection.PoolingListener<JmsConnection>protected void doStop(JmsConnection jmsConnection)
protected void doClose(JmsConnection jmsConnection)
public void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposableprotected void createJmsSupport()
JmsSupportpublic GenericConnectionParameters getConnectionParameters()
public JmsSupport getJmsSupport()
protected void setJmsSupport(JmsSupport jmsSupport)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.