|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.space.cache.LocalViewSpaceConfigurer
public class LocalViewSpaceConfigurer
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
Constructor Summary | |
---|---|
LocalViewSpaceConfigurer(IJSpace space)
|
|
LocalViewSpaceConfigurer(SpaceConfigurer spaceConfigurer)
|
Method Summary | |
---|---|
LocalViewSpaceConfigurer |
addProperty(String name,
String value)
|
LocalViewSpaceConfigurer |
addView(View view)
Deprecated. since 8.0.5 - use addViewQuery(SQLQuery) instead. |
LocalViewSpaceConfigurer |
addViewQuery(SQLQuery query)
Adds a query to the view's criteria. |
LocalViewSpaceConfigurer |
batchSize(int batchSize)
Sets the cache synchronization batch size. |
LocalViewSpaceConfigurer |
batchTimeout(long batchTimeout)
Sets the cache synchronization batch timeout (i.e. maximum time the server will batch entries before updating the client). |
IJSpace |
create()
Creates and returns a local cache according to the configured settings. |
void |
destroy()
|
IJSpace |
localView()
|
LocalViewSpaceConfigurer |
maxDisconnectionDuration(long maxDisconnectionDuration)
Sets the maximum time to return cached results before switching to disconnected state. |
IJSpace |
space()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalViewSpaceConfigurer(SpaceConfigurer spaceConfigurer)
public LocalViewSpaceConfigurer(IJSpace space)
Method Detail |
---|
public LocalViewSpaceConfigurer addProperty(String name, String value)
AbstractLocalCacheSpaceFactoryBean.setProperties(java.util.Properties)
@Deprecated public LocalViewSpaceConfigurer addView(View view)
addViewQuery(SQLQuery)
instead.
public LocalViewSpaceConfigurer addViewQuery(SQLQuery query)
public LocalViewSpaceConfigurer batchSize(int batchSize)
public LocalViewSpaceConfigurer batchTimeout(long batchTimeout)
public LocalViewSpaceConfigurer maxDisconnectionDuration(long maxDisconnectionDuration)
public IJSpace create()
public IJSpace localView()
public void destroy()
public IJSpace space()
space
in interface SpaceConfigurer
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |