GigaSpaces XAP 9.7.2 API

org.openspaces.remoting
Class EventDrivenRemotingProxyConfigurer<T>

java.lang.Object
  extended by org.openspaces.remoting.EventDrivenRemotingProxyConfigurer<T>

public class EventDrivenRemotingProxyConfigurer<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 EventDrivenRemotingProxyConfigurer<MyBusinessInterface>(gigaSpace, MyBusinessInterface.class)
                                  .timeout(15000)
                                  .proxy();
 proxy.businessMethod(...);
 

Author:
Uri Cohen

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

Constructor Detail

EventDrivenRemotingProxyConfigurer

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

globalOneWay

public EventDrivenRemotingProxyConfigurer<T> globalOneWay(boolean globalOneWay)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setGlobalOneWay(boolean)

fifo

public EventDrivenRemotingProxyConfigurer<T> fifo(boolean fifo)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setFifo(boolean)

metaArgumentsHandler

public EventDrivenRemotingProxyConfigurer<T> metaArgumentsHandler(MetaArgumentsHandler metaArgumentsHandler)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setMetaArgumentsHandler(org.openspaces.remoting.MetaArgumentsHandler)

remoteInvocationAspect

public EventDrivenRemotingProxyConfigurer<T> remoteInvocationAspect(RemoteInvocationAspect remoteInvocationAspect)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.remoteInvocationAspect

voidOneWay

public EventDrivenRemotingProxyConfigurer<T> voidOneWay(boolean voidOneWay)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setVoidOneWay(boolean)

timeout

public EventDrivenRemotingProxyConfigurer<T> timeout(long timeout)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setTimeout(long)

remoteRoutingHandler

public EventDrivenRemotingProxyConfigurer<T> remoteRoutingHandler(RemoteRoutingHandler remoteRoutingHandler)
See Also:
EventDrivenSpaceRemotingProxyFactoryBean.setRemoteRoutingHandler(org.openspaces.remoting.RemoteRoutingHandler)

proxy

public T proxy()
Creates a new event driven proxy of type T


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.