org.openspaces.remoting
Class SyncRemotingProxyConfigurer<T>
java.lang.Object
org.openspaces.remoting.SyncRemotingProxyConfigurer<T>
public class SyncRemotingProxyConfigurer<T>
- extends Object
A simple programmatic configurer creating a remote syncronous proxy
Usage example:
IJSpace space = new UrlSpaceConfigurer("jini://*/*/mySpace")
.space();
GigaSpace gigaSpace = new GigaSpaceConfigurer(space).gigaSpace();
MyBusinessInterface proxy = new SyncRemotingProxyConfigurer<MyBusinessInterface>(gigaSpace, MyBusinessInterface.class)
.broadcast(true)
.voidOneWay(true)
.syncProxy();
proxy.businessMethod(...);
- Author:
- Uri Cohen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyncRemotingProxyConfigurer
public SyncRemotingProxyConfigurer(GigaSpace gigaSpace,
Class<T> serviceInterface)
broadcast
public SyncRemotingProxyConfigurer<T> broadcast(boolean broadcat)
- See Also:
SyncSpaceRemotingProxyFactoryBean.setBroadcast(boolean)
broadcast
public <X,Y> SyncRemotingProxyConfigurer<T> broadcast(RemoteResultReducer<X,Y> remoteResultReducer)
- See Also:
SyncSpaceRemotingProxyFactoryBean.setBroadcast(boolean)
,
SyncSpaceRemotingProxyFactoryBean.setRemoteResultReducer(RemoteResultReducer)
remoteResultReducer
public SyncRemotingProxyConfigurer<T> remoteResultReducer(RemoteResultReducer remoteResultReducer)
- See Also:
SyncSpaceRemotingProxyFactoryBean.setRemoteResultReducer(RemoteResultReducer)
returnFirstResult
public SyncRemotingProxyConfigurer<T> returnFirstResult(boolean returnFirstResult)
- See Also:
SyncSpaceRemotingProxyFactoryBean.setReturnFirstResult(boolean)
globalOneWay
public SyncRemotingProxyConfigurer<T> globalOneWay(boolean globalOneWay)
- See Also:
SyncSpaceRemotingProxyFactoryBean.setGlobalOneWay(boolean)
metaArgumentsHandler
public SyncRemotingProxyConfigurer<T> metaArgumentsHandler(MetaArgumentsHandler metaArgumentsHandler)
- See Also:
SyncSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(org.openspaces.remoting.MetaArgumentsHandler)
remoteInvocationAspect
public SyncRemotingProxyConfigurer<T> remoteInvocationAspect(RemoteInvocationAspect remoteInvocationAspect)
- See Also:
SyncSpaceRemotingProxyFactoryBean.remoteInvocationAspect
voidOneWay
public SyncRemotingProxyConfigurer<T> voidOneWay(boolean voidOneWay)
- See Also:
SyncSpaceRemotingProxyFactoryBean.setVoidOneWay(boolean)
remoteRoutingHandler
public SyncRemotingProxyConfigurer<T> remoteRoutingHandler(RemoteRoutingHandler remoteRoutingHandler)
- See Also:
SyncSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(org.openspaces.remoting.RemoteRoutingHandler)
syncProxy
public T syncProxy()
- Creates a new synchronous proxy of type T
proxy
public T proxy()
- Creates a new synchronous proxy of type T
Copyright © GigaSpaces.