org.openspaces.core.space.cache
Class LocalViewSpaceConfigurer
java.lang.Object
org.openspaces.core.space.cache.LocalViewSpaceConfigurer
- All Implemented Interfaces:
- SpaceConfigurer
public class LocalViewSpaceConfigurer
- extends Object
- implements SpaceConfigurer
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"});
LocalViewSpaceConfigurer localViewConfigurer = new LocalViewSpaceConfigurer(urlSpaceConfigurer)
.addView(new View(SimpleMessage.class, "processed = true"));
GigaSpace localViewGigaSpace = new GigaSpaceConfigurer(localViewConfigurer).gigaSpace();
...
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(SpaceConfigurer spaceConfigurer)
LocalViewSpaceConfigurer
public LocalViewSpaceConfigurer(IJSpace space)
addProperty
public LocalViewSpaceConfigurer addProperty(String name,
String value)
- See Also:
AbstractLocalCacheSpaceFactoryBean.setProperties(java.util.Properties)
addView
public LocalViewSpaceConfigurer addView(View view)
localView
public IJSpace localView()
destroy
public void destroy()
space
public IJSpace space()
- Specified by:
space
in interface SpaceConfigurer
Copyright © GigaSpaces.