public class SdkInternalContext extends Object implements EventInternalContext<SdkInternalContext>
| Modifier and Type | Class and Description |
|---|---|
static class |
SdkInternalContext.LocationSpecificSdkInternalContext |
static class |
SdkInternalContext.OperationExecutionParams |
| Constructor and Description |
|---|
SdkInternalContext() |
| Modifier and Type | Method and Description |
|---|---|
SdkInternalContext |
copy() |
static SdkInternalContext |
from(CoreEvent event)
Extracts an instance stored in the given
event |
Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> |
getConfiguration(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId) |
Function<reactor.util.context.Context,reactor.util.context.Context> |
getInnerChainSubscriberContextMapping() |
SdkInternalContext.OperationExecutionParams |
getOperationExecutionParams(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId) |
OperationPolicy |
getPolicyToApply(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId) |
Map<String,Object> |
getResolutionResult(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId) |
boolean |
isNoPolicyOperation(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId) |
void |
putContext(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId) |
void |
removeContext(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId) |
void |
setConfiguration(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId,
Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> configuration)
For a given location, this method has to always be called first, so the context for this location is properly initialized.
|
void |
setInnerChainSubscriberContextMapping(Function<reactor.util.context.Context,reactor.util.context.Context> innerChainSubscriberContextMapping) |
void |
setOperationExecutionParams(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId,
Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> configuration,
Map<String,Object> parameters,
CoreEvent operationEvent,
org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor.ExecutorCallback callback,
ExecutionContextAdapter executionContextAdapter) |
void |
setPolicyToApply(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId,
OperationPolicy policyToApply) |
void |
setResolutionResult(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId,
Map<String,Object> resolutionResult) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyOfpublic static SdkInternalContext from(CoreEvent event)
eventevent - SdkInternalContext or null if none was set on the eventpublic void removeContext(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId)
public void putContext(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId)
public void setConfiguration(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId,
Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> configuration)
location - the location of the operation that generated this context.configuration - the configuration of the operation.public Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> getConfiguration(org.mule.runtime.api.component.location.ComponentLocation location, String eventId)
public void setOperationExecutionParams(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId,
Optional<org.mule.runtime.extension.api.runtime.config.ConfigurationInstance> configuration,
Map<String,Object> parameters,
CoreEvent operationEvent,
org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor.ExecutorCallback callback,
ExecutionContextAdapter executionContextAdapter)
public SdkInternalContext.OperationExecutionParams getOperationExecutionParams(org.mule.runtime.api.component.location.ComponentLocation location, String eventId)
public Map<String,Object> getResolutionResult(org.mule.runtime.api.component.location.ComponentLocation location, String eventId)
public void setResolutionResult(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId,
Map<String,Object> resolutionResult)
public OperationPolicy getPolicyToApply(org.mule.runtime.api.component.location.ComponentLocation location, String eventId)
public void setPolicyToApply(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId,
OperationPolicy policyToApply)
public boolean isNoPolicyOperation(org.mule.runtime.api.component.location.ComponentLocation location,
String eventId)
true if the policy to be applied is a no-op, false if a policy is actually applied.public Function<reactor.util.context.Context,reactor.util.context.Context> getInnerChainSubscriberContextMapping()
public void setInnerChainSubscriberContextMapping(Function<reactor.util.context.Context,reactor.util.context.Context> innerChainSubscriberContextMapping)
public SdkInternalContext copy()
copy in interface EventInternalContext<SdkInternalContext>Copyright © 2003–2024 MuleSoft, Inc.. All rights reserved.