public class

FreshBooksConnectorConfigConnectionManagementConnectionManager

extends ExpressionEvaluatorSupport
implements MetadataAware MuleContextAware ProcessAdapter<O> Capabilities Disposable Initialisable Testable ConnectionManagementConnectionManager<Key extends ConnectionManagementConnectionKey, Adapter extends ConnectionManagementConnectorAdapter, Strategy>
java.lang.Object
   ↳ org.mule.devkit.processor.ExpressionEvaluatorSupport
     ↳ org.mule.modules.freshbooks.connectivity.FreshBooksConnectorConfigConnectionManagementConnectionManager

Class Overview

A FreshBooksConnectorConfigConnectionManagementConnectionManager is a wrapper around FreshBooksConnector that adds connection management capabilities to the pojo.

Summary

Constants
String DEVKIT_BUILD
String DEVKIT_VERSION
String MIN_MULE_VERSION
String MODULE_NAME
String MODULE_VERSION
[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
Fields
private String accessTokenIdentifierPrefix
private String apiUrl
private KeyedObjectPool connectionPool Connector Pool
private String consumerKey
private String consumerSecret
private int defaultMaxConnectionPerRoute
private int maxTotalConnection
protected MuleContext muleContext Mule Context
private ObjectStore objectStore
protected PoolingProfile poolingProfile
protected RetryPolicyTemplate retryPolicyTemplate
Public Constructors
FreshBooksConnectorConfigConnectionManagementConnectionManager()
Public Methods
FreshBooksConnectorConnectionManagementAdapter acquireConnection(ConnectionManagementConfigFreshBooksConnectorConnectionKey key)
void destroyConnection(ConnectionManagementConfigFreshBooksConnectorConnectionKey key, FreshBooksConnectorConnectionManagementAdapter connection)
void dispose()
String getAccessTokenIdentifierPrefix()
Retrieves accessTokenIdentifierPrefix
String getApiUrl()
Retrieves apiUrl
ConnectionManagementConnectionAdapter getConnectionAdapter(ConnectionManagementConnectorAdapter adapter)
ConnectionManagementConfigFreshBooksConnectorConnectionKey getConnectionKey(MessageProcessor messageProcessor, MuleEvent event)
String getConsumerKey()
Retrieves consumerKey
String getConsumerSecret()
Retrieves consumerSecret
ConnectionManagementConfigFreshBooksConnectorConnectionKey getDefaultConnectionKey()
int getDefaultMaxConnectionPerRoute()
Retrieves defaultMaxConnectionPerRoute
String getDevkitBuild()
String getDevkitVersion()
ConnectionManagementConfigFreshBooksConnectorConnectionKey getEvaluatedConnectionKey(MuleEvent event)
int getMaxTotalConnection()
Retrieves maxTotalConnection
String getMinMuleVersion()
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
ObjectStore getObjectStore()
Retrieves objectStore
PoolingProfile getPoolingProfile()
Retrieves poolingProfile
<P> ProcessTemplate<P, FreshBooksConnectorConnectionManagementAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
void initialise()
boolean isCapableOf(ModuleCapability capability)
Returns true if this module implements such capability
ConnectionManagementConnectionAdapter newConnection()
ConnectionManagementConnectorAdapter newConnector(ConnectionManagementConnectionAdapter<ConfigConnectionManagementConfigFreshBooksConnectorConnectionKey> connection)
void releaseConnection(ConnectionManagementConfigFreshBooksConnectorConnectionKey key, FreshBooksConnectorConnectionManagementAdapter connection)
void setAccessTokenIdentifierPrefix(String value)
Sets accessTokenIdentifierPrefix
void setApiUrl(String value)
Sets apiUrl
void setConsumerKey(String value)
Sets consumerKey
void setConsumerSecret(String value)
Sets consumerSecret
void setDefaultMaxConnectionPerRoute(int value)
Sets defaultMaxConnectionPerRoute
void setMaxTotalConnection(int value)
Sets maxTotalConnection
void setMuleContext(MuleContext value)
Sets muleContext
void setObjectStore(ObjectStore value)
Sets objectStore
void setPoolingProfile(PoolingProfile value)
Sets poolingProfile
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
TestResult test()
[Expand]
Inherited Methods
From class org.mule.devkit.processor.ExpressionEvaluatorSupport
From class java.lang.Object
From interface org.mule.api.MetadataAware
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.devkit.ProcessAdapter
From interface org.mule.api.devkit.capability.Capabilities
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.common.Testable
From interface org.mule.devkit.internal.connection.management.ConnectionManagementConnectionManager

Constants

private static final String DEVKIT_BUILD

Constant Value: "3.7.x.2633.51164b9"

private static final String DEVKIT_VERSION

Constant Value: "3.7.2"

private static final String MIN_MULE_VERSION

Constant Value: "3.6"

private static final String MODULE_NAME

Constant Value: "FreshBooks"

private static final String MODULE_VERSION

Constant Value: "1.2.0"

Fields

private String accessTokenIdentifierPrefix

private String apiUrl

private KeyedObjectPool connectionPool

Connector Pool

private String consumerKey

private String consumerSecret

private int defaultMaxConnectionPerRoute

private int maxTotalConnection

protected MuleContext muleContext

Mule Context

private ObjectStore objectStore

protected PoolingProfile poolingProfile

protected RetryPolicyTemplate retryPolicyTemplate

Public Constructors

public FreshBooksConnectorConfigConnectionManagementConnectionManager ()

Public Methods

public void destroyConnection (ConnectionManagementConfigFreshBooksConnectorConnectionKey key, FreshBooksConnectorConnectionManagementAdapter connection)

Parameters
key
connection
Throws
Exception

public void dispose ()

public String getAccessTokenIdentifierPrefix ()

Retrieves accessTokenIdentifierPrefix

public String getApiUrl ()

Retrieves apiUrl

public ConnectionManagementConnectionAdapter getConnectionAdapter (ConnectionManagementConnectorAdapter adapter)

Parameters
adapter

public ConnectionManagementConfigFreshBooksConnectorConnectionKey getConnectionKey (MessageProcessor messageProcessor, MuleEvent event)

Parameters
messageProcessor
event
Throws
Exception

public String getConsumerKey ()

Retrieves consumerKey

public String getConsumerSecret ()

Retrieves consumerSecret

public int getDefaultMaxConnectionPerRoute ()

Retrieves defaultMaxConnectionPerRoute

public String getDevkitBuild ()

public String getDevkitVersion ()

public ConnectionManagementConfigFreshBooksConnectorConnectionKey getEvaluatedConnectionKey (MuleEvent event)

Parameters
event
Throws
Exception

public int getMaxTotalConnection ()

Retrieves maxTotalConnection

public String getMinMuleVersion ()

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public ObjectStore getObjectStore ()

Retrieves objectStore

public PoolingProfile getPoolingProfile ()

Retrieves poolingProfile

public ProcessTemplate<P, FreshBooksConnectorConnectionManagementAdapter> getProcessTemplate ()

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

public void initialise ()

public boolean isCapableOf (ModuleCapability capability)

Returns true if this module implements such capability

Parameters
capability

public ConnectionManagementConnectionAdapter newConnection ()

public ConnectionManagementConnectorAdapter newConnector (ConnectionManagementConnectionAdapter<ConfigConnectionManagementConfigFreshBooksConnectorConnectionKey> connection)

Parameters
connection

public void releaseConnection (ConnectionManagementConfigFreshBooksConnectorConnectionKey key, FreshBooksConnectorConnectionManagementAdapter connection)

Parameters
key
connection
Throws
Exception

public void setAccessTokenIdentifierPrefix (String value)

Sets accessTokenIdentifierPrefix

Parameters
value Value to set

public void setApiUrl (String value)

Sets apiUrl

Parameters
value Value to set

public void setConsumerKey (String value)

Sets consumerKey

Parameters
value Value to set

public void setConsumerSecret (String value)

Sets consumerSecret

Parameters
value Value to set

public void setDefaultMaxConnectionPerRoute (int value)

Sets defaultMaxConnectionPerRoute

Parameters
value Value to set

public void setMaxTotalConnection (int value)

Sets maxTotalConnection

Parameters
value Value to set

public void setMuleContext (MuleContext value)

Sets muleContext

Parameters
value Value to set

public void setObjectStore (ObjectStore value)

Sets objectStore

Parameters
value Value to set

public void setPoolingProfile (PoolingProfile value)

Sets poolingProfile

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public TestResult test ()