Package com.avanza.astrix.gs.remoting
Class AstrixDistributedServiceInvocationTask
- java.lang.Object
-
- com.avanza.astrix.gs.remoting.AstrixDistributedServiceInvocationTask
-
- All Implemented Interfaces:
com.gigaspaces.async.AsyncResultsReducer<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse,List<com.gigaspaces.async.AsyncResult<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>>>,Serializable,org.openspaces.core.executor.DistributedTask<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse,List<com.gigaspaces.async.AsyncResult<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>>>,org.openspaces.core.executor.Task<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>
public class AstrixDistributedServiceInvocationTask extends Object implements org.openspaces.core.executor.DistributedTask<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse,List<com.gigaspaces.async.AsyncResult<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>>>
Carries an AstrixServiceInvocationRequest from client to server and performs the invocation of theAstrixServiceActivatorImplby using the possibility to autowire spring-beans on the server side.- Author:
- Elias Lindholm
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description com.avanza.astrix.spring.AstrixSpringContextastrixSpringContext
-
Constructor Summary
Constructors Constructor Description AstrixDistributedServiceInvocationTask(com.avanza.astrix.remoting.client.AstrixServiceInvocationRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.avanza.astrix.remoting.client.AstrixServiceInvocationResponseexecute()List<com.gigaspaces.async.AsyncResult<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>>reduce(List<com.gigaspaces.async.AsyncResult<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>> results)
-
-
-
Method Detail
-
execute
public com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse execute() throws Exception- Specified by:
executein interfaceorg.openspaces.core.executor.Task<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>- Throws:
Exception
-
-