Summary: OpenSpaces allows you to easily configure and use the space local view feature using the LocalViewSpaceFactoryBean component and local cache using LocalCacheSpaceFactoryBean.
OpenSpaces allows you to easily configure and use the space local view feature using the LocalViewSpaceFactoryBean component. The factory exposes the same IJSpace implementation that a regular space component exposes, with the additional feature of having a local view.
The following is an example of how a local view can be configured:
IJSpace space = // get Space either by injection or code creation
IJSpace viewSpace = new LocalViewSpaceConfigurer(space).addView("eg.Message", "processed = true")
.localView();
Local Cache
OpenSpaces also allows you to configure a master-local space, simply by using the LocalCacheSpaceFactoryBean component. The factory exposes the same IJSpace implementation that a regular space component exposes, with the additional feature of having a local cache.
The following is an example of how a local cache can be configured:
IJSpace space = // get Space either by injection or code creation
IJSpace localCache = new LocalCacheSpaceConfigurer(space).updateMode(UpdateMode.PULL)
.localCache();
GigaSpaces 6.0 Documentation Contents (Current Page in Bold)