org.openspaces.remoting
Class AsyncRemotingProxyConfigurer<T>
java.lang.Object
org.openspaces.remoting.AsyncRemotingProxyConfigurer<T>
public class AsyncRemotingProxyConfigurer<T>
- extends Object
A simple programmatic configurer creating a remote asyncronous proxy
Usage example:
IJSpace space = new UrlSpaceConfigurer("jini://*/*/mySpace")
.space();
GigaSpace gigaSpace = new GigaSpaceConfigurer(space).gigaSpace();
MyBusinessInterface proxy = new AsyncRemotingProxyConfigurer<MyBusinessInterface>(gigaSpace, MyBusinessInterface.class)
.timeout(15000)
.asyncProxy();
proxy.businessMethod(...);
- Author:
- Uri Cohen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncRemotingProxyConfigurer
public AsyncRemotingProxyConfigurer(GigaSpace gigaSpace,
Class<T> serviceInterface)
globalOneWay
public AsyncRemotingProxyConfigurer<T> globalOneWay(boolean globalOneWay)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.setGlobalOneWay(boolean)
fifo
public AsyncRemotingProxyConfigurer<T> fifo(boolean fifo)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.setFifo(boolean)
metaArgumentsHandler
public AsyncRemotingProxyConfigurer<T> metaArgumentsHandler(MetaArgumentsHandler metaArgumentsHandler)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(MetaArgumentsHandler)
remoteInvocationAspect
public AsyncRemotingProxyConfigurer<T> remoteInvocationAspect(RemoteInvocationAspect remoteInvocationAspect)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.remoteInvocationAspect
voidOneWay
public AsyncRemotingProxyConfigurer<T> voidOneWay(boolean voidOneWay)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.setVoidOneWay(boolean)
timeout
public AsyncRemotingProxyConfigurer<T> timeout(long timeout)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.setTimeout(long)
remoteRoutingHandler
public AsyncRemotingProxyConfigurer<T> remoteRoutingHandler(RemoteRoutingHandler remoteRoutingHandler)
- See Also:
AsyncSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(RemoteRoutingHandler)
asyncProxy
public T asyncProxy()
- Creates a new asynchronous proxy of type T
proxy
public T proxy()
- Creates a new asynchronous proxy of type T
Copyright © GigaSpaces.