Package org.openspaces.remoting
Annotation 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:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionbooleanDetermines Whether or not to broadcast the specific method call to all cluster members. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the name in the spring context of aMetaArgumentsHandlerto be used when invoking the annotated method.Specifies the class name of aMetaArgumentsHandlerto be used to be used when invoking the annotated method.Specifies the name in the spring context of aRemoteInvocationAspectto be used when invoking the annotated method.Specifies the class name of aRemoteInvocationAspectto be used to be used when invoking the annotated method.When broadcast is set to true, specifies the name in the spring context of aRemoteResultReducerto be used for reducing the result of the invocation.When broadcast is set to true, specifies the class name of aRemoteResultReducerto be used for reducing the result of the invocation.When broadcast is set to false, specifies the name in the spring context of aRemoteRoutingHandlerto be used for determining the routing key for the invocation.When broadcast is set to false, specifies the class name of aRemoteRoutingHandlerto be used for for determining the routing key for the invocation.
-
Element Details
-
broadcast
boolean broadcastDetermines 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 usingExecutorSpaceRemotingProxyFactoryBean.setRemoteResultReducer(RemoteResultReducer)When the annotation is not set, will default toExecutorSpaceRemotingProxyFactoryBean.setBroadcast(boolean)
-
-
-
remoteResultReducer
String remoteResultReducerWhen broadcast is set to true, specifies the name in the spring context of aRemoteResultReducerto be used for reducing the result of the invocation. When the annotation is not set, will default toExecutorSpaceRemotingProxyFactoryBean.setRemoteResultReducer(RemoteResultReducer)- Default:
- ""
-
remoteResultReducerType
Class remoteResultReducerTypeWhen broadcast is set to true, specifies the class name of aRemoteResultReducerto 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 toExecutorSpaceRemotingProxyFactoryBean.setRemoteResultReducer(RemoteResultReducer)- Default:
- java.lang.Object.class
-
remoteRoutingHandler
String remoteRoutingHandlerWhen broadcast is set to false, specifies the name in the spring context of aRemoteRoutingHandlerto be used for determining the routing key for the invocation. When the annotation is not set, will default toExecutorSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(RemoteRoutingHandler)- Default:
- ""
-
remoteRoutingHandlerType
Class remoteRoutingHandlerTypeWhen broadcast is set to false, specifies the class name of aRemoteRoutingHandlerto 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 toExecutorSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(RemoteRoutingHandler)- Default:
- java.lang.Object.class
-
remoteInvocationAspect
String remoteInvocationAspectSpecifies the name in the spring context of aRemoteInvocationAspectto be used when invoking the annotated method. When the annotation is not set, will default toExecutorSpaceRemotingProxyFactoryBean.setRemoteInvocationAspect(RemoteInvocationAspect)- Default:
- ""
-
remoteInvocationAspectType
Class remoteInvocationAspectTypeSpecifies the class name of aRemoteInvocationAspectto 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 toExecutorSpaceRemotingProxyFactoryBean.setRemoteInvocationAspect(RemoteInvocationAspect)- Default:
- java.lang.Object.class
-
metaArgumentsHandler
String metaArgumentsHandlerSpecifies the name in the spring context of aMetaArgumentsHandlerto be used when invoking the annotated method. When the annotation is not set, will default toExecutorSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(MetaArgumentsHandler)- Default:
- ""
-
metaArgumentsHandlerType
Class metaArgumentsHandlerTypeSpecifies the class name of aMetaArgumentsHandlerto 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 toExecutorSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(MetaArgumentsHandler)- Default:
- java.lang.Object.class
-