public interface MiddlewareContext extends ExecutionContext
This class is internal and is hence not for public use at this time. Its APIs are unstable and can change at any time.
| Modifier and Type | Method and Description |
|---|---|
String |
getParameterName(String annotationSimpleClassName)
Returns the name of parameter defined in customer function.
|
Object |
getParameterValue(String name)
Returns corresponding parameter value sent from host by the given the parameter name.
|
Object |
getReturnValue()
Returns the return value from customer function invocation.
|
void |
updateParameterValue(String name,
Object value)
Updates the parameter value by parameter name.
|
void |
updateReturnValue(Object returnValue)
Updates the return value from customer function invocation.
|
getFunctionName, getInvocationId, getLogger, getRetryContext, getTraceContextString getParameterName(String annotationSimpleClassName)
annotationSimpleClassName - the simple class name of target annotationObject getParameterValue(String name)
name - the name of parametervoid updateParameterValue(String name, Object value)
name - the name of parameter to be updatedvalue - the value of parameter to be updatedObject getReturnValue()
void updateReturnValue(Object returnValue)
returnValue - value that will be updated as function return value.Copyright © 2022. All rights reserved.