GigaSpaces XAP 9.7.2 API

org.openspaces.core.space.cache
Class LocalViewSpaceFactoryBean

java.lang.Object
  extended by org.openspaces.core.space.cache.AbstractLocalCacheSpaceFactoryBean
      extended by org.openspaces.core.space.cache.LocalViewSpaceFactoryBean
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

Author:
kimchy

Field Summary
 
Fields inherited from class org.openspaces.core.space.cache.AbstractLocalCacheSpaceFactoryBean
logger
 
Constructor Summary
LocalViewSpaceFactoryBean()
           
 
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 org.openspaces.core.space.cache.AbstractLocalCacheSpaceFactoryBean
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

LocalViewSpaceFactoryBean

public LocalViewSpaceFactoryBean()
Method Detail

setLocalViews

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.


addViewQuery

public void addViewQuery(Object query)

getCacheConfig

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

validate

protected void validate()
Overrides:
validate in class AbstractLocalCacheSpaceFactoryBean

setInitialSynchronizationTimeout

public void setInitialSynchronizationTimeout(long initialSynchronizationTimeout)

createCache

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.