public class SdkSourceCallBackContextAdapter extends Object implements SourceCallbackContextAdapter
SourceCallbackContext into a SourceCallbackContextAdapter| Constructor and Description |
|---|
SdkSourceCallBackContextAdapter(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariable(String s,
Object o) |
org.mule.sdk.api.tx.TransactionHandle |
bindConnection(Object o) |
void |
dispatched()
Indicates that
this instance has already been used to dispatch an event |
void |
fireOnHandle(org.mule.sdk.api.notification.NotificationActionDefinition<?> notificationActionDefinition,
org.mule.runtime.api.metadata.TypedValue<?> typedValue) |
<T> T |
getConnection() |
Optional<String> |
getCorrelationId() |
List<NotificationFunction> |
getNotificationsFunctions()
Retrieves the notification functions.
|
<T,A> org.mule.sdk.api.runtime.source.SourceCallback<T,A> |
getSourceCallback() |
org.mule.sdk.api.tx.TransactionHandle |
getTransactionHandle() |
<T> Optional<T> |
getVariable(String s) |
boolean |
hasVariable(String s) |
void |
releaseConnection()
Releases the bound connection
|
void |
setCorrelationId(String s) |
public SdkSourceCallBackContextAdapter(org.mule.runtime.extension.api.runtime.source.SourceCallbackContext delegate)
public org.mule.sdk.api.tx.TransactionHandle bindConnection(Object o) throws org.mule.runtime.api.connection.ConnectionException, org.mule.runtime.api.tx.TransactionException
bindConnection in interface org.mule.sdk.api.runtime.source.SourceCallbackContextorg.mule.runtime.api.connection.ConnectionExceptionorg.mule.runtime.api.tx.TransactionExceptionpublic <T> T getConnection()
throws IllegalStateException
getConnection in interface org.mule.sdk.api.runtime.source.SourceCallbackContextIllegalStateExceptionpublic org.mule.sdk.api.tx.TransactionHandle getTransactionHandle()
getTransactionHandle in interface org.mule.sdk.api.runtime.source.SourceCallbackContextpublic boolean hasVariable(String s)
hasVariable in interface org.mule.sdk.api.runtime.source.SourceCallbackContextpublic <T> Optional<T> getVariable(String s)
getVariable in interface org.mule.sdk.api.runtime.source.SourceCallbackContextpublic void addVariable(String s, Object o)
addVariable in interface org.mule.sdk.api.runtime.source.SourceCallbackContextpublic void setCorrelationId(String s)
setCorrelationId in interface org.mule.sdk.api.runtime.source.SourceCallbackContextpublic Optional<String> getCorrelationId()
getCorrelationId in interface org.mule.sdk.api.runtime.source.SourceCallbackContextpublic <T,A> org.mule.sdk.api.runtime.source.SourceCallback<T,A> getSourceCallback()
getSourceCallback in interface org.mule.sdk.api.runtime.source.SourceCallbackContextpublic void fireOnHandle(org.mule.sdk.api.notification.NotificationActionDefinition<?> notificationActionDefinition,
org.mule.runtime.api.metadata.TypedValue<?> typedValue)
fireOnHandle in interface org.mule.sdk.api.runtime.source.SourceCallbackContextpublic void releaseConnection()
SourceCallbackContextAdapterreleaseConnection in interface SourceCallbackContextAdapterpublic void dispatched()
SourceCallbackContextAdapterthis instance has already been used to dispatch an eventdispatched in interface SourceCallbackContextAdapterpublic List<NotificationFunction> getNotificationsFunctions()
SourceCallbackContextAdaptergetNotificationsFunctions in interface SourceCallbackContextAdapterNotificationFunctions to evaluate and fireCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.