T - The generic type of the TransactionalConnectionpublic final class TransactionalConnectionHandler<T extends org.mule.runtime.extension.api.connectivity.TransactionalConnection> extends Object implements ConnectionHandlerAdapter<T>
ConnectionHandlerAdapter to be used when a TransactionalConnection is participating on a transaction.| Constructor and Description |
|---|
TransactionalConnectionHandler(ExtensionTransactionalResource<T> resource)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection making sure that the owning transaction is resolved.
|
T |
getConnection() |
org.mule.runtime.api.connection.ConnectionProvider<T> |
getConnectionProvider() |
void |
invalidate() |
void |
release()
Does nothing since the connection shouldn't be released until the transaction is resolved
|
public TransactionalConnectionHandler(ExtensionTransactionalResource<T> resource)
resource - a ExtensionTransactionalResource which wraps the connectionpublic T getConnection() throws org.mule.runtime.api.connection.ConnectionException
getConnection in interface org.mule.runtime.api.connection.ConnectionHandler<T extends org.mule.runtime.extension.api.connectivity.TransactionalConnection>org.mule.runtime.api.connection.ConnectionExceptionpublic void release()
release in interface org.mule.runtime.api.connection.ConnectionHandler<T extends org.mule.runtime.extension.api.connectivity.TransactionalConnection>public void invalidate()
invalidate in interface org.mule.runtime.api.connection.ConnectionHandler<T extends org.mule.runtime.extension.api.connectivity.TransactionalConnection>public void close()
throws org.mule.runtime.api.exception.MuleException
close in interface Closeableclose in interface ConnectionHandlerAdapter<T extends org.mule.runtime.extension.api.connectivity.TransactionalConnection>org.mule.runtime.api.exception.MuleException - if anything goes wrongpublic org.mule.runtime.api.connection.ConnectionProvider<T> getConnectionProvider()
getConnectionProvider in interface ConnectionHandlerAdapter<T extends org.mule.runtime.extension.api.connectivity.TransactionalConnection>Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.