Class 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 the AstrixServiceActivatorImpl by using the possibility to autowire spring-beans on the server side.

    Author:
    Elias Lindholm
    See Also:
    Serialized Form
    • Field Detail

      • astrixSpringContext

        @Autowired
        public transient com.avanza.astrix.spring.AstrixSpringContext astrixSpringContext
    • Constructor Detail

      • AstrixDistributedServiceInvocationTask

        public AstrixDistributedServiceInvocationTask​(com.avanza.astrix.remoting.client.AstrixServiceInvocationRequest request)
    • Method Detail

      • execute

        public com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse execute()
                                                                                  throws Exception
        Specified by:
        execute in interface org.openspaces.core.executor.Task<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>
        Throws:
        Exception
      • reduce

        public List<com.gigaspaces.async.AsyncResult<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>> reduce​(List<com.gigaspaces.async.AsyncResult<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>> results)
                                                                                                                         throws Exception
        Specified by:
        reduce in interface com.gigaspaces.async.AsyncResultsReducer<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse,​List<com.gigaspaces.async.AsyncResult<com.avanza.astrix.remoting.client.AstrixServiceInvocationResponse>>>
        Throws:
        Exception