public class CacheContextFactory extends Object
Constructor and Description |
---|
CacheContextFactory(CacheManager cacheManager,
String fullSpaceName) |
Modifier and Type | Method and Description |
---|---|
void |
closeAllContexts()
close all contexts free and occupied, waits until all Contexts are returned.
|
void |
freeCacheContext(Context ctx)
Free a Context acquired by getCacheContext().
|
Context |
getCacheContext()
returns a free Context from the pool.
|
Context |
viewCacheContext()
returns the active Context of this thread or null if none
|
public CacheContextFactory(CacheManager cacheManager, String fullSpaceName)
public Context getCacheContext()
public Context viewCacheContext()
public void freeCacheContext(Context ctx)
ctx
- A Context object in use, and to be freed.public void closeAllContexts()
Copyright © GigaSpaces.