public class

ZuoraModuleConnectionManager

extends Object
implements Capabilities ConnectionManager<K, C> Initialisable
java.lang.Object
   ↳ org.mule.modules.zuora.config.ZuoraModuleConnectionManager

Class Overview

A ZuoraModuleConnectionManager is a wrapper around ZuoraModule that adds connection management capabilities to the pojo.

Summary

Nested Classes
class ZuoraModuleConnectionManager.ConnectionParameters  
[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Initialisable
Fields
private ZuoraClient<Exception> client
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
private String endpoint
private FlowConstruct flowConstruct Flow construct
private static Logger logger
private MuleContext muleContext Mule Context
private String password
private String username
Public Constructors
ZuoraModuleConnectionManager()
Public Methods
ZuoraModuleLifecycleAdapter acquireConnection(ZuoraModuleConnectionManager.ConnectionParameters key)
void destroyConnection(ZuoraModuleConnectionManager.ConnectionParameters key, ZuoraModuleLifecycleAdapter connection)
ZuoraClient<Exception> getClient()
Retrieves client
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
String getEndpoint()
Retrieves endpoint
String getPassword()
Retrieves password
String getUsername()
Retrieves username
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(ZuoraModuleConnectionManager.ConnectionParameters key, ZuoraModuleLifecycleAdapter connection)
void setClient(ZuoraClient<Exception> value)
Sets client
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setEndpoint(String value)
Sets endpoint
void setFlowConstruct(FlowConstruct flowConstruct)
Sets flow construct
void setMuleContext(MuleContext context)
Set the Mule context
void setPassword(String value)
Sets password
void setUsername(String value)
Sets username
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.api.Capabilities
From interface org.mule.api.ConnectionManager
From interface org.mule.api.lifecycle.Initialisable

Fields

private ZuoraClient<Exception> client

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

private String endpoint

private FlowConstruct flowConstruct

Flow construct

private static Logger logger

private MuleContext muleContext

Mule Context

private String password

private String username

Public Constructors

public ZuoraModuleConnectionManager ()

Public Methods

public ZuoraModuleLifecycleAdapter acquireConnection (ZuoraModuleConnectionManager.ConnectionParameters key)

Parameters
key
Throws
Exception

public void destroyConnection (ZuoraModuleConnectionManager.ConnectionParameters key, ZuoraModuleLifecycleAdapter connection)

Parameters
key
connection
Throws
Exception

public ZuoraClient<Exception> getClient ()

Retrieves client

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

public String getEndpoint ()

Retrieves endpoint

public String getPassword ()

Retrieves password

public String getUsername ()

Retrieves username

public void initialise ()

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability

public void releaseConnection (ZuoraModuleConnectionManager.ConnectionParameters key, ZuoraModuleLifecycleAdapter connection)

Parameters
key
connection
Throws
Exception

public void setClient (ZuoraClient<Exception> value)

Sets client

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setEndpoint (String value)

Sets endpoint

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct flowConstruct)

Sets flow construct

Parameters
flowConstruct Flow construct to set

public void setMuleContext (MuleContext context)

Set the Mule context

Parameters
context Mule context to set

public void setPassword (String value)

Sets password

Parameters
value Value to set

public void setUsername (String value)

Sets username

Parameters
value Value to set