public class LegacySourceCallbackContextAdapter extends Object implements AugmentedLegacySourceCallbackContext
SourceCallbackContext into a legacy
SourceCallbackContext| Constructor and Description |
|---|
LegacySourceCallbackContextAdapter(org.mule.sdk.api.runtime.source.SourceCallbackContext delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariable(String variableName,
Object value) |
org.mule.runtime.extension.api.tx.TransactionHandle |
bindConnection(Object connection) |
void |
dispatched()
Indicates that
this instance has already been used to dispatch an event |
void |
fireOnHandle(org.mule.runtime.extension.api.notification.NotificationActionDefinition<?> action,
org.mule.runtime.api.metadata.TypedValue<?> data) |
<T> T |
getConnection() |
Optional<String> |
getCorrelationId() |
List<NotificationFunction> |
getNotificationsFunctions()
Retrieves the notification functions.
|
<T,A> org.mule.runtime.extension.api.runtime.source.SourceCallback<T,A> |
getSourceCallback() |
org.mule.runtime.extension.api.tx.TransactionHandle |
getTransactionHandle() |
<T> Optional<T> |
getVariable(String variableName) |
boolean |
hasVariable(String variableName) |
void |
releaseConnection()
Releases the bound connection
|
void |
setCorrelationId(String correlationId) |
public LegacySourceCallbackContextAdapter(org.mule.sdk.api.runtime.source.SourceCallbackContext delegate)
public org.mule.runtime.extension.api.tx.TransactionHandle bindConnection(Object connection) throws org.mule.runtime.api.connection.ConnectionException, org.mule.runtime.api.tx.TransactionException
bindConnection in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextorg.mule.runtime.api.connection.ConnectionExceptionorg.mule.runtime.api.tx.TransactionExceptionpublic <T> T getConnection()
throws IllegalStateException
getConnection in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextIllegalStateExceptionpublic org.mule.runtime.extension.api.tx.TransactionHandle getTransactionHandle()
getTransactionHandle in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextpublic boolean hasVariable(String variableName)
hasVariable in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextpublic <T> Optional<T> getVariable(String variableName)
getVariable in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextpublic void addVariable(String variableName, Object value)
addVariable in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextpublic void setCorrelationId(String correlationId)
setCorrelationId in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextpublic Optional<String> getCorrelationId()
getCorrelationId in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextpublic <T,A> org.mule.runtime.extension.api.runtime.source.SourceCallback<T,A> getSourceCallback()
getSourceCallback in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextpublic void fireOnHandle(org.mule.runtime.extension.api.notification.NotificationActionDefinition<?> action,
org.mule.runtime.api.metadata.TypedValue<?> data)
fireOnHandle in interface org.mule.runtime.extension.api.runtime.source.SourceCallbackContextpublic void releaseConnection()
AugmentedLegacySourceCallbackContextreleaseConnection in interface AugmentedLegacySourceCallbackContextpublic void dispatched()
AugmentedLegacySourceCallbackContextthis instance has already been used to dispatch an eventdispatched in interface AugmentedLegacySourceCallbackContextpublic List<NotificationFunction> getNotificationsFunctions()
AugmentedLegacySourceCallbackContextgetNotificationsFunctions in interface AugmentedLegacySourceCallbackContextNotificationFunctions to evaluate and fireCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.