GigaSpaces XAP 9.7.2 API
Class LocalViewSpaceFactoryBean

  extended by
      extended by
All Implemented Interfaces:
ServiceDetailsProvider, Aware, BeanNameAware, DisposableBean, FactoryBean, InitializingBean

public class LocalViewSpaceFactoryBean
extends AbstractLocalCacheSpaceFactoryBean

The space local view proxy maintains a subset of the master space's data, allowing the client to read distributed data without any remote operations.

Data is streamed into the client view in an implicit manner - as opposed to local cache data (LocalCacheSpaceFactoryBean), that is loaded into the client on- demand, and later updated or evicted.

The local view is defined via a filter (setLocalViews(java.util.List) localViews) - as opposed to the local cache that caches data at the client side only after the data has been read


Field Summary
Fields inherited from class
Constructor Summary
Method Summary
 void addViewQuery(Object query)
protected  IJSpace createCache(com.gigaspaces.internal.client.spaceproxy.IDirectSpaceProxy remoteSpace)
          Creates the local view
protected  com.gigaspaces.internal.client.cache.SpaceCacheConfig getCacheConfig()
 void setInitialSynchronizationTimeout(long initialSynchronizationTimeout)
 void setLocalViews(List<Object> queries)
          Sets an array of filters/views that define what portion of the data from the master space will be streamed to this local view.
protected  void validate()
Methods inherited from class
addProperty, afterPropertiesSet, destroy, getBeanName, getObject, getObjectType, getServicesDetails, isSingleton, setBatchSize, setBatchTimeout, setBeanName, setMaxDisconnectionDuration, setProperties, setSpace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public LocalViewSpaceFactoryBean()
Method Detail


public void setLocalViews(List<Object> queries)
Sets an array of filters/views that define what portion of the data from the master space will be streamed to this local view.


public void addViewQuery(Object query)


protected com.gigaspaces.internal.client.cache.SpaceCacheConfig getCacheConfig()
Specified by:
getCacheConfig in class AbstractLocalCacheSpaceFactoryBean


protected void validate()
validate in class AbstractLocalCacheSpaceFactoryBean


public void setInitialSynchronizationTimeout(long initialSynchronizationTimeout)


protected IJSpace createCache(com.gigaspaces.internal.client.spaceproxy.IDirectSpaceProxy remoteSpace)
Creates the local view

Specified by:
createCache in class AbstractLocalCacheSpaceFactoryBean

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.