GigaSpaces XAP 7.0 API

org.openspaces.remoting
Class SyncRemotingProxyConfigurer<T>

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

Constructor Summary
SyncRemotingProxyConfigurer(GigaSpace gigaSpace, Class<T> serviceInterface)
           
 
Method Summary
 SyncRemotingProxyConfigurer<T> broadcast(boolean broadcat)
           
<X,Y> SyncRemotingProxyConfigurer<T>
broadcast(RemoteResultReducer<X,Y> remoteResultReducer)
           
 SyncRemotingProxyConfigurer<T> globalOneWay(boolean globalOneWay)
           
 SyncRemotingProxyConfigurer<T> metaArgumentsHandler(MetaArgumentsHandler metaArgumentsHandler)
           
 T proxy()
          Creates a new synchronous proxy of type T
 SyncRemotingProxyConfigurer<T> remoteInvocationAspect(RemoteInvocationAspect remoteInvocationAspect)
           
 SyncRemotingProxyConfigurer<T> remoteResultReducer(RemoteResultReducer remoteResultReducer)
           
 SyncRemotingProxyConfigurer<T> remoteRoutingHandler(RemoteRoutingHandler remoteRoutingHandler)
           
 SyncRemotingProxyConfigurer<T> returnFirstResult(boolean returnFirstResult)
           
 T syncProxy()
          Creates a new synchronous proxy of type T
 SyncRemotingProxyConfigurer<T> voidOneWay(boolean voidOneWay)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncRemotingProxyConfigurer

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

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


GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.