|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InvocationChain
A wire consists of 1..n invocation chains associated with the operations of its source service contract.
Invocation chains may containInterceptors
that process invocations.
A Message
is used to pass data associated with an invocation through the chain.
Method Summary | |
---|---|
void |
addInterceptor(Interceptor interceptor)
Adds an interceptor to the chain. |
void |
addInterceptor(int index,
Interceptor interceptor)
Deprecated. Please use void addInterceptor(String phase, Interceptor interceptor);
Adds an interceptor at the given position in the interceptor stack |
void |
addInterceptor(java.lang.String phase,
Interceptor interceptor)
Add an interceptor to the given phase |
void |
addInvoker(Invoker invoker)
Adds an invoker to the chain |
boolean |
allowsPassByReference()
Indicate if the data can be passed in by reference as they won't be mutated. |
Invoker |
getHeadInvoker()
Returns the first invoker in the chain. |
Operation |
getSourceOperation()
Returns the source operation for this invocation chain. |
Invoker |
getTailInvoker()
Deprecated. This method is not used Returns the last invoker in the chain. |
Operation |
getTargetOperation()
Returns the target operation for this invocation chain. |
void |
setAllowsPassByReference(boolean allowsPBR)
Force the invocation to allow pass-by-reference |
void |
setTargetOperation(Operation operation)
Updates the target operation for this invocation chain. |
Method Detail |
---|
Operation getTargetOperation()
void setTargetOperation(Operation operation)
operation
- The new target operation for this invocation chainOperation getSourceOperation()
void addInterceptor(Interceptor interceptor)
interceptor
- The interceptor to addvoid addInvoker(Invoker invoker)
invoker
- The invoker to addInvoker getHeadInvoker()
@Deprecated Invoker getTailInvoker()
@Deprecated void addInterceptor(int index, Interceptor interceptor)
void addInterceptor(String phase, Interceptor interceptor);
Adds an interceptor at the given position in the interceptor stack
index
- The position in the interceptor stack to add the interceptorinterceptor
- The interceptor to addvoid addInterceptor(java.lang.String phase, Interceptor interceptor)
phase
- interceptor
- boolean allowsPassByReference()
void setAllowsPassByReference(boolean allowsPBR)
allowsPBR
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |