GigaSpaces XAP 10.0.1 API

org.openspaces.remoting
Annotation Type ExecutorRemotingMethod


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface ExecutorRemotingMethod

An annotation used to configure method level behaviour for executor remoting proxies. which are eventually configured through ExecutorSpaceRemotingProxyFactoryBean. Should be set on the method of the remote interface

Since:
8.0
Author:
uri
See Also:
ExecutorSpaceRemotingProxyFactoryBean, RemotingAnnotationBeanPostProcessor

Required Element Summary
 boolean broadcast
          Determines Whether or not to broadcast the specific method call to all cluster members.
 
Optional Element Summary
 String metaArgumentsHandler
          Specifies the name in the spring context of a MetaArgumentsHandler to be used when invoking the annotated method.
 Class metaArgumentsHandlerType
          Specifies the class name of a MetaArgumentsHandler to be used to be used when invoking the annotated method.
 String remoteInvocationAspect
          Specifies the name in the spring context of a RemoteInvocationAspect to be used when invoking the annotated method.
 Class remoteInvocationAspectType
          Specifies the class name of a RemoteInvocationAspect to be used to be used when invoking the annotated method.
 String remoteResultReducer
          When broadcast is set to true, specifies the name in the spring context of a RemoteResultReducer to be used for reducing the result of the invocation.
 Class remoteResultReducerType
          When broadcast is set to true, specifies the class name of a RemoteResultReducer to be used for reducing the result of the invocation.
 String remoteRoutingHandler
          When broadcast is set to false, specifies the name in the spring context of a RemoteRoutingHandler to be used for determining the routing key for the invocation.
 Class remoteRoutingHandlerType
          When broadcast is set to false, specifies the class name of a RemoteRoutingHandler to be used for for determining the routing key for the invocation.
 

Element Detail

broadcast

public abstract boolean broadcast
Determines Whether or not to broadcast the specific method call to all cluster members. When set, a remote reducer must also be present. The reducer can be be configured specifically for the method to which the annotation applies (using the #remoteResultReducer or #remoteInvocationAspectType attributes) or at the proxy level by using ExecutorSpaceRemotingProxyFactoryBean.setRemoteResultReducer(RemoteResultReducer) When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setBroadcast(boolean)

remoteResultReducer

public abstract String remoteResultReducer
When broadcast is set to true, specifies the name in the spring context of a RemoteResultReducer to be used for reducing the result of the invocation. When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setRemoteResultReducer(RemoteResultReducer)

Default:
""

remoteResultReducerType

public abstract Class remoteResultReducerType
When broadcast is set to true, specifies the class name of a RemoteResultReducer to be used for reducing the result of the invocation. When using this attribute, each invocation of the annotated method will result in creating a new instance of the specified class. When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setRemoteResultReducer(RemoteResultReducer)

Default:
java.lang.Object.class

remoteRoutingHandler

public abstract String remoteRoutingHandler
When broadcast is set to false, specifies the name in the spring context of a RemoteRoutingHandler to be used for determining the routing key for the invocation. When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(RemoteRoutingHandler)

Default:
""

remoteRoutingHandlerType

public abstract Class remoteRoutingHandlerType
When broadcast is set to false, specifies the class name of a RemoteRoutingHandler to be used for for determining the routing key for the invocation. When using this attribute, each invocation of the annotated method will result in creating a new instance of the specified class. When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(RemoteRoutingHandler)

Default:
java.lang.Object.class

remoteInvocationAspect

public abstract String remoteInvocationAspect
Specifies the name in the spring context of a RemoteInvocationAspect to be used when invoking the annotated method. When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setRemoteInvocationAspect(RemoteInvocationAspect)

Default:
""

remoteInvocationAspectType

public abstract Class remoteInvocationAspectType
Specifies the class name of a RemoteInvocationAspect to be used to be used when invoking the annotated method. When using this attribute, each invocation of the annotated method will result in creating a new instance of the specified class. When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setRemoteInvocationAspect(RemoteInvocationAspect)

Default:
java.lang.Object.class

metaArgumentsHandler

public abstract String metaArgumentsHandler
Specifies the name in the spring context of a MetaArgumentsHandler to be used when invoking the annotated method. When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(MetaArgumentsHandler)

Default:
""

metaArgumentsHandlerType

public abstract Class metaArgumentsHandlerType
Specifies the class name of a MetaArgumentsHandler to be used to be used when invoking the annotated method. When using this attribute, each invocation of the annotated method will result in creating a new instance of the specified class. When the annotation is not set, will default to ExecutorSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(MetaArgumentsHandler)

Default:
java.lang.Object.class

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.