public class ReconnectableConnectionProvider extends Object implements org.mule.runtime.api.connection.CachedConnectionProvider<ReconnectableConnection>
All connection related parameters (values required in order to create a connection) must be declared in the connection providers.
This particular example is a PoolingConnectionProvider which declares that connections resolved by this provider will
be pooled and reused. There are other implementations like CachedConnectionProvider which lazily creates and caches
connections or simply ConnectionProvider if you want a new connection each time something requires one.
| Modifier and Type | Field and Description |
|---|---|
static int |
disconnectCalls |
static boolean |
fail |
| Constructor and Description |
|---|
ReconnectableConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
ReconnectableConnection |
connect() |
void |
disconnect(ReconnectableConnection connection) |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(ReconnectableConnection connection) |
public static volatile boolean fail
public static volatile int disconnectCalls
public ReconnectableConnection connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<ReconnectableConnection>org.mule.runtime.api.connection.ConnectionExceptionpublic void disconnect(ReconnectableConnection connection)
disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<ReconnectableConnection>public org.mule.runtime.api.connection.ConnectionValidationResult validate(ReconnectableConnection connection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<ReconnectableConnection>Copyright © 2025 MuleSoft, Inc.. All rights reserved.