org.openspaces.core.space.cache
Class LocalViewSpaceConfigurer
java.lang.Object
org.openspaces.core.space.cache.LocalViewSpaceConfigurer
public class LocalViewSpaceConfigurer
- extends Object
A simple configurer helper to create IJSpace
local view. The configurer wraps
LocalViewSpaceFactoryBean
and providing a simpler means
to configure it using code.
An example of using it:
UrlSpaceConfigurer urlSpaceConfigurer = new UrlSpaceConfigurer("/./space").schema("persistent")
.noWriteLeaseMode(true).lookupGroups(new String[] {"kimchy"});
IJSpace space = urlSpaceConfigurer.space();
LocalViewSpaceConfigurer localViewConfigurer = new LocalViewSpaceConfigurer(space)
.addView(new View(SimpleMessage.class, "processed = true"));
IJSpace localView = localViewConfigurer.localView();
...
localViewConfigurer.destroy();
urlSpaceConfigurer.destroy(); // optional
- Author:
- kimchy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalViewSpaceConfigurer
public LocalViewSpaceConfigurer(com.j_spaces.core.IJSpace space)
addProperty
public LocalViewSpaceConfigurer addProperty(String name,
String value)
- See Also:
AbstractLocalCacheSpaceFactoryBean.setProperties(java.util.Properties)
addView
public LocalViewSpaceConfigurer addView(com.j_spaces.core.client.view.View view)
localView
public com.j_spaces.core.IJSpace localView()
destroy
public void destroy()
Copyright © GigaSpaces.