|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.core.invocation.NonBlockingInterceptor
public class NonBlockingInterceptor
Adds non-blocking behavior to an invocation chain
Constructor Summary | |
---|---|
NonBlockingInterceptor(WorkScheduler workScheduler)
|
|
NonBlockingInterceptor(WorkScheduler workScheduler,
Interceptor next)
|
Method Summary | |
---|---|
Invoker |
getNext()
Returns the next invoker or null |
Message |
invoke(Message msg)
Process a synchronous wire |
void |
setNext(Invoker next)
Sets the next invoker |
void |
setWorkScheduler(WorkScheduler workScheduler)
Sets desired workScheduler to NonBlockingInterceptor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonBlockingInterceptor(WorkScheduler workScheduler)
public NonBlockingInterceptor(WorkScheduler workScheduler, Interceptor next)
Method Detail |
---|
public void setWorkScheduler(WorkScheduler workScheduler)
workScheduler
- workScheduler which contains workmanagerpublic Message invoke(Message msg)
Invoker
invoke
in interface Invoker
msg
- The request Message for the wire
public Invoker getNext()
Interceptor
getNext
in interface Interceptor
public void setNext(Invoker next)
Interceptor
setNext
in interface Interceptor
next
- The next invoker
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |