C - The generic type of the connections provided by the ConnectionProviderWrapper.delegatepublic class ReconnectableConnectionProviderWrapper<C> extends ConnectionProviderWrapper<C>
ConnectionProviderWrapper which includes a RetryPolicyTemplate
for reconnecting in case of problems establishing the connection.
It also contains the ability to skip connection validation.muleContext| Constructor and Description |
|---|
ReconnectableConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate,
boolean disableValidation,
RetryPolicyTemplate retryPolicyTemplate)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
RetryPolicyTemplate |
getRetryPolicyTemplate() |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(C connection)
Delegates the responsibility of validating the connection to the delegated
ConnectionProvider. |
connect, disconnect, dispose, getDelegate, getPoolingProfile, initialise, start, stop, unwrapProviderWrapperpublic ReconnectableConnectionProviderWrapper(org.mule.runtime.api.connection.ConnectionProvider<C> delegate, boolean disableValidation, RetryPolicyTemplate retryPolicyTemplate)
delegate - the ConnectionProvider to be wrappeddisableValidation - whether to skip connection validation upon invocations of validate(Object)retryPolicyTemplate - The RetryPolicyTemplate for retrying failed connection attemptspublic org.mule.runtime.api.connection.ConnectionValidationResult validate(C connection)
ConnectionProvider.
If disableValidation is true, then the validation is skipped, returning
ConnectionValidationResult.success()validate in interface org.mule.runtime.api.connection.ConnectionProvider<C>validate in class ConnectionProviderWrapper<C>connection - a given connectionConnectionValidationResult returned by the delegated ConnectionProviderpublic RetryPolicyTemplate getRetryPolicyTemplate()
getRetryPolicyTemplate in class ConnectionProviderWrapper<C>RetryPolicyTemplate with the configured values in the Mule Application.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.