GigaSpaces - Open Spaces

org.openspaces.remoting
Class AsyncRemotingProxyConfigurer<T>

java.lang.Object
  extended by 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

Constructor Summary
AsyncRemotingProxyConfigurer(GigaSpace gigaSpace, Class<T> serviceInterface)
           
 
Method Summary
 T asyncProxy()
          Creates a new asynchronous proxy of type T
 AsyncRemotingProxyConfigurer<T> fifo(boolean fifo)
           
 AsyncRemotingProxyConfigurer<T> globalOneWay(boolean globalOneWay)
           
 AsyncRemotingProxyConfigurer<T> metaArgumentsHandler(MetaArgumentsHandler metaArgumentsHandler)
           
 T proxy()
          Creates a new asynchronous proxy of type T
 AsyncRemotingProxyConfigurer<T> remoteInvocationAspect(RemoteInvocationAspect remoteInvocationAspect)
           
 AsyncRemotingProxyConfigurer<T> remoteRoutingHandler(RemoteRoutingHandler remoteRoutingHandler)
           
 AsyncRemotingProxyConfigurer<T> timeout(long timeout)
           
 AsyncRemotingProxyConfigurer<T> voidOneWay(boolean voidOneWay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncRemotingProxyConfigurer

public AsyncRemotingProxyConfigurer(GigaSpace gigaSpace,
                                    Class<T> serviceInterface)
Method Detail

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


GigaSpaces - Open Spaces

Copyright © GigaSpaces.