Tuscany Core

org.apache.tuscany.core.async.invocation
Class AsyncInterceptor

java.lang.Object
  extended by org.apache.tuscany.core.async.invocation.AsyncInterceptor
All Implemented Interfaces:
Interceptor

public class AsyncInterceptor
extends Object
implements Interceptor

A wire interceptor that uses a WorkManager to schedule asynchronous execution of invocations in Work instances.


Constructor Summary
AsyncInterceptor(javax.resource.spi.work.WorkManager workManager, MessageFactory messageFactory)
          Constructs a new instance
 
Method Summary
 Message invoke(Message message)
          Process a synchronous wire.
 void setNext(Interceptor next)
          Sets the next interceptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncInterceptor

public AsyncInterceptor(javax.resource.spi.work.WorkManager workManager,
                        MessageFactory messageFactory)
Constructs a new instance

Parameters:
workManager -
Method Detail

invoke

public Message invoke(Message message)
Description copied from interface: Interceptor
Process a synchronous wire.

Specified by:
invoke in interface Interceptor
Parameters:
message - the request Message for the wire
Returns:
the response Message from the wire

setNext

public void setNext(Interceptor next)
Description copied from interface: Interceptor
Sets the next interceptor.

Specified by:
setNext in interface Interceptor

Tuscany Core

-