public class ReconnectionUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Consumer<Throwable> |
NULL_THROWABLE_CONSUMER |
| Constructor and Description |
|---|
ReconnectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static InterceptorChain |
createReconnectionInterceptorsChain(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.ComponentModel componentModel,
ExtensionConnectionSupplier connectionSupplier,
ReflectionCache reflectionCache)
Creates an
InterceptorChain that enables reconnection for connected components |
static boolean |
isPartOfActiveTransaction(org.mule.runtime.extension.api.runtime.config.ConfigurationInstance configurationInstance) |
static boolean |
shouldRetry(Throwable t,
ExecutionContextAdapter<?> context) |
public static boolean shouldRetry(Throwable t, ExecutionContextAdapter<?> context)
t - the Throwable thrown during the execution of the operationcontext - the ExecutionContextAdapter that contains the context information about the operation's executionpublic static boolean isPartOfActiveTransaction(org.mule.runtime.extension.api.runtime.config.ConfigurationInstance configurationInstance)
configurationInstance - the ConfigurationInstance to check.public static InterceptorChain createReconnectionInterceptorsChain(org.mule.runtime.api.meta.model.ExtensionModel extensionModel, org.mule.runtime.api.meta.model.ComponentModel componentModel, ExtensionConnectionSupplier connectionSupplier, ReflectionCache reflectionCache)
InterceptorChain that enables reconnection for connected componentsextensionModel - the ExtensionModelcomponentModel - the ComponentModelconnectionSupplier - the connection supplierreflectionCache - a ReflectionCacheInterceptorChainCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.