|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.OptimizedRequestContext
public final class OptimizedRequestContext
NOT FOR PUBLIC USE - please use the interface provided by RequestContext. This is a temporary interface that helps provide an (optimized) fix for message scribbling.
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).
| Method Summary | |
|---|---|
static MuleEvent |
criticalSetEvent(MuleEvent event)
Set an event for out-of-scope thread access. |
static MuleMessage |
unsafeRewriteEvent(MuleMessage message)
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)
Set an event for out-of-scope thread access. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MuleEvent unsafeSetEvent(MuleEvent event)
event - - the event to set
public static MuleEvent criticalSetEvent(MuleEvent event)
event - - the event to set
public static MuleMessage unsafeRewriteEvent(MuleMessage message)
message - - the new message payload
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||