GigaSpaces XAP 9.7.2 API

org.openspaces.remoting
Annotation Type EventDrivenRemotingMethod


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

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

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

Optional Element Summary
 boolean fifo
          Specifies the fifo behaviour of this method.
 boolean globalOneWay
          Specifies the globalOneWay behaviour of the annotated method.
 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 remoteRoutingHandler
          Specifies the name in the spring context of a RemoteRoutingHandler to be used for determining the routing key for the invocation.
 Class remoteRoutingHandlerType
          Specifies the class name of a RemoteRoutingHandler to be used for for determining the routing key for the invocation.
 long timeout
          Sets the timeout that will be used to wait for the response from the remote invocation of the annotated method.
 boolean voidOneWay
          Specifies the voidOneWay behaviour of the annotated method.
 

fifo

public abstract boolean fifo
Specifies the fifo behaviour of this method. When the annotation is not set , will default to EventDrivenSpaceRemotingProxyFactoryBean.setFifo(boolean).

See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setFifo(boolean)
Default:
false

globalOneWay

public abstract boolean globalOneWay
Specifies the globalOneWay behaviour of the annotated method. When the annotation is not set , will default to EventDrivenSpaceRemotingProxyFactoryBean.setGlobalOneWay(boolean).

See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setGlobalOneWay(boolean)
Default:
false

voidOneWay

public abstract boolean voidOneWay
Specifies the voidOneWay behaviour of the annotated method. When the annotation is not set , will default to EventDrivenSpaceRemotingProxyFactoryBean.setVoidOneWay(boolean).

See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setVoidOneWay(boolean)
Default:
false

timeout

public abstract long timeout
Sets the timeout that will be used to wait for the response from the remote invocation of the annotated method. When the annotation is not set , will default to EventDrivenSpaceRemotingProxyFactoryBean.setTimeout(long)

See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setTimeout(long)
Default:
60000L

remoteRoutingHandler

public abstract String remoteRoutingHandler
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 EventDrivenSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(org.openspaces.remoting.RemoteRoutingHandler)

Default:
""

remoteRoutingHandlerType

public abstract Class remoteRoutingHandlerType
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 EventDrivenSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(org.openspaces.remoting.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 EventDrivenSpaceRemotingProxyFactoryBean.setRemoteInvocationAspect(org.openspaces.remoting.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 EventDrivenSpaceRemotingProxyFactoryBean.setRemoteInvocationAspect(org.openspaces.remoting.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 EventDrivenSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(org.openspaces.remoting.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 EventDrivenSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(org.openspaces.remoting.MetaArgumentsHandler)

Default:
java.lang.Object.class

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.