public class LocalViewSpaceFactoryBean extends AbstractLocalCacheSpaceFactoryBean
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
| Constructor and Description |
|---|
LocalViewSpaceFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(String name,
String value) |
void |
addViewQuery(Object query) |
void |
afterPropertiesSet()
Constructs a new local cache
IJSpace based on the master local cache set using setSpace(IJSpace) and a set of properties driving the actual local cache type from the
configuration. |
void |
destroy()
Closes the local cache space
|
protected String |
getBeanName() |
Object |
getObject()
Returns an
IJSpace that is the local cache wrapping the
master proxy set using setSpace(com.j_spaces.core.IJSpace). |
Class<? extends IJSpace> |
getObjectType()
Returns the type of the factory object.
|
ServiceDetails[] |
getServicesDetails()
Retruns one or more service details that the service exposes.
|
boolean |
isSingleton()
Returns
true since this bean is a singleton. |
void |
setBatchSize(int batchSize) |
void |
setBatchTimeout(long batchTimeout) |
void |
setBeanName(String beanName)
Spring callback that sets the bean name.
|
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.
|
void |
setMaxDisconnectionDuration(long maxDisconnectionDuration) |
void |
setProperties(Properties properties)
Sets additional properties for the local cache.
|
void |
setSpace(IJSpace space)
Sets the master space that a local cache will be built on top.
|
public boolean isSingleton()
true since this bean is a singleton.isSingleton in interface org.springframework.beans.factory.FactoryBeanisSingleton in class AbstractLocalCacheSpaceFactoryBeanpublic Object getObject()
IJSpace that is the local cache wrapping the
master proxy set using setSpace(com.j_spaces.core.IJSpace).public Class<? extends IJSpace> getObjectType()
public void afterPropertiesSet()
IJSpace based on the master local cache set using setSpace(IJSpace) and a set of properties driving the actual local cache type from the
configuration. Additional properties are applied based on setProperties(java.util.Properties).public void destroy()
public ServiceDetails[] getServicesDetails()
ServiceDetailsProviderpublic void setBeanName(String beanName)
protected String getBeanName()
public void setSpace(IJSpace space)
public void setProperties(Properties properties)
public void setBatchSize(int batchSize)
public void setBatchTimeout(long batchTimeout)
public void setMaxDisconnectionDuration(long maxDisconnectionDuration)
public void setLocalViews(List<Object> queries)
public void addViewQuery(Object query)
public void setInitialSynchronizationTimeout(long initialSynchronizationTimeout)
Copyright © GigaSpaces.