public class

AvalaraModuleConnectionManager

extends Object
implements Capabilities ConnectionManager<K, C extends Connection> MetadataAware MuleContextAware Initialisable ProcessAdapter<O>
java.lang.Object
   ↳ org.mule.modules.avalara.connectivity.AvalaraModuleConnectionManager

Class Overview

A AvalaraModuleConnectionManager is a wrapper around AvalaraModule that adds connection management capabilities to the pojo.

Summary

Constants
String DEVKIT_BUILD
String DEVKIT_VERSION
String MODULE_NAME
String MODULE_VERSION
[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Initialisable
Fields
private String account
private String addressServiceEndpoint
private String avalaraClient
private String batchServiceEndpoint
private GenericKeyedObjectPool connectionPool Connector Pool
protected PoolingProfile connectionPoolingProfile
protected FlowConstruct flowConstruct Flow Construct
private String license
protected MuleContext muleContext Mule Context
protected RetryPolicyTemplate retryPolicyTemplate
private String taxServiceEndpoint
Public Constructors
AvalaraModuleConnectionManager()
Public Methods
AvalaraModuleConnectionIdentifierAdapter acquireConnection(AvalaraModuleConnectionKey key)
void destroyConnection(AvalaraModuleConnectionKey key, AvalaraModuleConnectionIdentifierAdapter connection)
String getAccount()
Retrieves account
String getAddressServiceEndpoint()
Retrieves addressServiceEndpoint
String getAvalaraClient()
Retrieves avalaraClient
String getBatchServiceEndpoint()
Retrieves batchServiceEndpoint
PoolingProfile getConnectionPoolingProfile()
Retrieves connectionPoolingProfile
AvalaraModuleConnectionKey getDefaultConnectionKey()
String getDevkitBuild()
String getDevkitVersion()
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
String getLicense()
Retrieves license
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
<P> ProcessTemplate<P, AvalaraModuleConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getTaxServiceEndpoint()
Retrieves taxServiceEndpoint
void initialise()
boolean isCapableOf(Capability capability)
Returns true if this module implements such capability
void releaseConnection(AvalaraModuleConnectionKey key, AvalaraModuleConnectionIdentifierAdapter connection)
void setAccount(String value)
Sets account
void setAddressServiceEndpoint(String value)
Sets addressServiceEndpoint
void setAvalaraClient(String value)
Sets avalaraClient
void setBatchServiceEndpoint(String value)
Sets batchServiceEndpoint
void setConnectionPoolingProfile(PoolingProfile value)
Sets connectionPoolingProfile
void setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setLicense(String value)
Sets license
void setMuleContext(MuleContext value)
Sets muleContext
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setTaxServiceEndpoint(String value)
Sets taxServiceEndpoint
[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.MetadataAware
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.process.ProcessAdapter

Constants

private static final String DEVKIT_BUILD

Constant Value: "UNNAMED.1377.fd7d4f9"

private static final String DEVKIT_VERSION

Constant Value: "3.3.2"

private static final String MODULE_NAME

Constant Value: "Avalara"

private static final String MODULE_VERSION

Constant Value: "3.0.2"

Fields

private String account

private String addressServiceEndpoint

private String avalaraClient

private String batchServiceEndpoint

private GenericKeyedObjectPool connectionPool

Connector Pool

protected PoolingProfile connectionPoolingProfile

protected FlowConstruct flowConstruct

Flow Construct

private String license

protected MuleContext muleContext

Mule Context

protected RetryPolicyTemplate retryPolicyTemplate

private String taxServiceEndpoint

Public Constructors

public AvalaraModuleConnectionManager ()

Public Methods

public AvalaraModuleConnectionIdentifierAdapter acquireConnection (AvalaraModuleConnectionKey key)

Parameters
key
Throws
Exception

public void destroyConnection (AvalaraModuleConnectionKey key, AvalaraModuleConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public String getAccount ()

Retrieves account

public String getAddressServiceEndpoint ()

Retrieves addressServiceEndpoint

public String getAvalaraClient ()

Retrieves avalaraClient

public String getBatchServiceEndpoint ()

Retrieves batchServiceEndpoint

public PoolingProfile getConnectionPoolingProfile ()

Retrieves connectionPoolingProfile

public AvalaraModuleConnectionKey getDefaultConnectionKey ()

public String getDevkitBuild ()

public String getDevkitVersion ()

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public String getLicense ()

Retrieves license

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public ProcessTemplate<P, AvalaraModuleConnectionIdentifierAdapter> getProcessTemplate ()

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

public String getTaxServiceEndpoint ()

Retrieves taxServiceEndpoint

public void initialise ()

public boolean isCapableOf (Capability capability)

Returns true if this module implements such capability

Parameters
capability

public void releaseConnection (AvalaraModuleConnectionKey key, AvalaraModuleConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void setAccount (String value)

Sets account

Parameters
value Value to set

public void setAddressServiceEndpoint (String value)

Sets addressServiceEndpoint

Parameters
value Value to set

public void setAvalaraClient (String value)

Sets avalaraClient

Parameters
value Value to set

public void setBatchServiceEndpoint (String value)

Sets batchServiceEndpoint

Parameters
value Value to set

public void setConnectionPoolingProfile (PoolingProfile value)

Sets connectionPoolingProfile

Parameters
value Value to set

public void setFlowConstruct (FlowConstruct value)

Sets flowConstruct

Parameters
value Value to set

public void setLicense (String value)

Sets license

Parameters
value Value to set

public void setMuleContext (MuleContext value)

Sets muleContext

Parameters
value Value to set

public void setRetryPolicyTemplate (RetryPolicyTemplate value)

Sets retryPolicyTemplate

Parameters
value Value to set

public void setTaxServiceEndpoint (String value)

Sets taxServiceEndpoint

Parameters
value Value to set