public class

AvalaraModuleConnectionManager

extends ExpressionEvaluatorSupport
implements MetadataAware MuleContextAware ProcessAdapter<O> Capabilities Disposable Initialisable Testable ConnectionManager<K, C extends Connection>
java.lang.Object
   ↳ org.mule.devkit.processor.ExpressionEvaluatorSupport
     ↳ 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 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 account
private String addressServiceEndpoint
private String avalaraClient
private String batchServiceEndpoint
private KeyedObjectPool connectionPool Connector Pool
protected FlowConstruct flowConstruct Flow Construct
private String license
protected MuleContext muleContext Mule Context
protected PoolingProfile poolingProfile
protected RetryPolicyTemplate retryPolicyTemplate
private String taxServiceEndpoint
Public Constructors
AvalaraModuleConnectionManager()
Public Methods
AvalaraModuleConnectionIdentifierAdapter acquireConnection(AvalaraModuleConnectionKey key)
DefaultResult buildFailureTestResult(Exception exception)
void destroyConnection(AvalaraModuleConnectionKey key, AvalaraModuleConnectionIdentifierAdapter connection)
void dispose()
String getAccount()
Retrieves account
String getAddressServiceEndpoint()
Retrieves addressServiceEndpoint
String getAvalaraClient()
Retrieves avalaraClient
String getBatchServiceEndpoint()
Retrieves batchServiceEndpoint
AvalaraModuleConnectionKey getDefaultConnectionKey()
Retrieve the default connection key
String getDevkitBuild()
String getDevkitVersion()
AvalaraModuleConnectionKey getEvaluatedConnectionKey(MuleEvent event)
Retrieve the connection key evaluated with the received mule event
FlowConstruct getFlowConstruct()
Retrieves flowConstruct
String getLicense()
Retrieves license
String getMinMuleVersion()
String getModuleName()
String getModuleVersion()
MuleContext getMuleContext()
Retrieves muleContext
PoolingProfile getPoolingProfile()
Retrieves poolingProfile
<P> ProcessTemplate<P, AvalaraModuleConnectionIdentifierAdapter> getProcessTemplate()
RetryPolicyTemplate getRetryPolicyTemplate()
Retrieves retryPolicyTemplate
String getTaxServiceEndpoint()
Retrieves taxServiceEndpoint
void initialise()
boolean isCapableOf(ModuleCapability 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 setFlowConstruct(FlowConstruct value)
Sets flowConstruct
void setLicense(String value)
Sets license
void setMuleContext(MuleContext value)
Sets muleContext
void setPoolingProfile(PoolingProfile value)
Sets poolingProfile
void setRetryPolicyTemplate(RetryPolicyTemplate value)
Sets retryPolicyTemplate
void setTaxServiceEndpoint(String value)
Sets taxServiceEndpoint
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.modules.avalara.connection.ConnectionManager

Constants

private static final String DEVKIT_BUILD

Constant Value: "UNNAMED.2049.ec39f2b"

private static final String DEVKIT_VERSION

Constant Value: "3.5.3"

private static final String MIN_MULE_VERSION

Constant Value: "3.5.0"

private static final String MODULE_NAME

Constant Value: "Avalara"

private static final String MODULE_VERSION

Constant Value: "3.0.3"

Fields

private String account

private String addressServiceEndpoint

private String avalaraClient

private String batchServiceEndpoint

private KeyedObjectPool connectionPool

Connector Pool

protected FlowConstruct flowConstruct

Flow Construct

private String license

protected MuleContext muleContext

Mule Context

protected PoolingProfile poolingProfile

protected RetryPolicyTemplate retryPolicyTemplate

private String taxServiceEndpoint

Public Constructors

public AvalaraModuleConnectionManager ()

Public Methods

public AvalaraModuleConnectionIdentifierAdapter acquireConnection (AvalaraModuleConnectionKey key)

Parameters
key
Throws
Exception

public DefaultResult buildFailureTestResult (Exception exception)

Parameters
exception

public void destroyConnection (AvalaraModuleConnectionKey key, AvalaraModuleConnectionIdentifierAdapter connection)

Parameters
key
connection
Throws
Exception

public void dispose ()

public String getAccount ()

Retrieves account

public String getAddressServiceEndpoint ()

Retrieves addressServiceEndpoint

public String getAvalaraClient ()

Retrieves avalaraClient

public String getBatchServiceEndpoint ()

Retrieves batchServiceEndpoint

public AvalaraModuleConnectionKey getDefaultConnectionKey ()

Retrieve the default connection key

Returns
  • The default connection key

public String getDevkitBuild ()

public String getDevkitVersion ()

public AvalaraModuleConnectionKey getEvaluatedConnectionKey (MuleEvent event)

Retrieve the connection key evaluated with the received mule event

Parameters
event
Returns
  • The default connection key
Throws
Exception

public FlowConstruct getFlowConstruct ()

Retrieves flowConstruct

public String getLicense ()

Retrieves license

public String getMinMuleVersion ()

public String getModuleName ()

public String getModuleVersion ()

public MuleContext getMuleContext ()

Retrieves muleContext

public PoolingProfile getPoolingProfile ()

Retrieves poolingProfile

public ProcessTemplate<P, AvalaraModuleConnectionIdentifierAdapter> getProcessTemplate ()

public RetryPolicyTemplate getRetryPolicyTemplate ()

Retrieves retryPolicyTemplate

Returns
  • The reconnection strategy

public String getTaxServiceEndpoint ()

Retrieves taxServiceEndpoint

public void initialise ()

public boolean isCapableOf (ModuleCapability 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 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 setPoolingProfile (PoolingProfile value)

Sets poolingProfile

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

public TestResult test ()