MessageProcessor
or Callable
instead@Deprecated public final class OptimizedRequestContext extends Object
Mutating methods have three versions: default (RequestContext; safe, makes and returns a new
copy - although this can be changed via RequestContext.DEFAULT_ACTION
);
unsafe (doesn't make a copy, use only where certain no threading); critical (safe,
documents that threading a known issue).
Modifier and Type | Method and Description |
---|---|
static MuleEvent |
criticalSetEvent(MuleEvent event)
Deprecated.
Set an event for out-of-scope thread access.
|
static MuleMessage |
unsafeRewriteEvent(MuleMessage message)
Deprecated.
Sets a new message payload in the RequestContext but maintains all other
properties (session, endpoint, synchronous, etc.) from the previous event.
|
static MuleEvent |
unsafeSetEvent(MuleEvent event)
Deprecated.
Set an event for out-of-scope thread access.
|
public static MuleEvent unsafeSetEvent(MuleEvent event)
event
- - the event to setpublic static MuleEvent criticalSetEvent(MuleEvent event)
event
- - the event to setpublic static MuleMessage unsafeRewriteEvent(MuleMessage message)
message
- - the new message payloadCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.