Package org.openspaces.remoting
Class ExecutorRemotingProxyConfigurer<T>
java.lang.Object
org.openspaces.remoting.ExecutorRemotingProxyConfigurer<T>
A simple programmatic configurer creating a remote executor based proxy
Usage example:
IJSpace space = new UrlSpaceConfigurer("jini://*/*/mySpace")
.space();
GigaSpace gigaSpace = new GigaSpaceConfigurer(space).gigaSpace();
MyBusinessInterface proxy = new ExecutorRemotingProxyConfigurer<MyBusinessInterface>(gigaSpace,
MyBusinessInterface.class)
.broadcast(true)
.proxy();
proxy.businessMethod(...);
- Author:
- kimchy
-
Constructor Summary
ConstructorsConstructorDescriptionExecutorRemotingProxyConfigurer(GigaSpace gigaSpace, Class<T> serviceInterface) -
Method Summary
Modifier and TypeMethodDescriptionbroadcast(boolean broadcast) <X,Y> ExecutorRemotingProxyConfigurer<T> broadcast(RemoteResultReducer<X, Y> remoteResultReducer) metaArgumentsHandler(MetaArgumentsHandler metaArgumentsHandler) proxy()Creates a new executor proxy of type TremoteInvocationAspect(RemoteInvocationAspect remoteInvocationAspect) remoteResultReducer(RemoteResultReducer remoteResultReducer) remoteRoutingHandler(RemoteRoutingHandler remoteRoutingHandler) returnFirstResult(boolean returnFirstResult) timeout(long timeout)
-
Constructor Details
-
ExecutorRemotingProxyConfigurer
-
-
Method Details
-
timeout
-
broadcast
-
broadcast
public <X,Y> ExecutorRemotingProxyConfigurer<T> broadcast(RemoteResultReducer<X, Y> remoteResultReducer) -
remoteResultReducer
public ExecutorRemotingProxyConfigurer<T> remoteResultReducer(RemoteResultReducer remoteResultReducer) -
returnFirstResult
-
metaArgumentsHandler
public ExecutorRemotingProxyConfigurer<T> metaArgumentsHandler(MetaArgumentsHandler metaArgumentsHandler) -
remoteInvocationAspect
public ExecutorRemotingProxyConfigurer<T> remoteInvocationAspect(RemoteInvocationAspect remoteInvocationAspect) - See Also:
-
ExecutorSpaceRemotingProxyFactoryBean.remoteInvocationAspect
-
remoteRoutingHandler
public ExecutorRemotingProxyConfigurer<T> remoteRoutingHandler(RemoteRoutingHandler remoteRoutingHandler) -
proxy
Creates a new executor proxy of type T
-