public class CacheConnectionImpl extends Object implements ICacheConnection
| Constructor and Description |
|---|
CacheConnectionImpl(QueryEngine queryEngine)
Note: A distributed cache fabric could be accessed from any node in a
cluster.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the cache / cache connection.
|
void |
destroyCaches(String namespace,
long timestamp)
Destroy the cache(s) associated with that namespace.
|
protected void |
finalize()
CacheConnectionImpl is used with a singleton pattern managed by the
CacheConnectionFactory. |
IDescribeCache |
getDescribeCache(String namespace,
long timestamp)
Return a view of a maintained DESCRIBE cache.
|
void |
init()
Initialize the cache / cache connection.
|
public CacheConnectionImpl(QueryEngine queryEngine)
Journal -or- the
IndexManager inside the IDataService and provides direct
access to FusedViews (aka shards).queryEngine - The QueryEngine.public void init()
ICacheConnectioninit in interface ICacheConnectionpublic void close()
ICacheConnectionclose in interface ICacheConnectionpublic void destroyCaches(String namespace, long timestamp)
ICacheConnectiondestroyCaches in interface ICacheConnectionnamespace - The KB namespace.protected void finalize()
throws Throwable
CacheConnectionImpl is used with a singleton pattern managed by the
CacheConnectionFactory. It will be torn down automatically it is no
longer reachable. This behavior depends on not having any hard references
back to the QueryEngine.public IDescribeCache getDescribeCache(String namespace, long timestamp)
ICacheConnectiongetDescribeCache in interface ICacheConnectionnamespace - The KB namespace.timestamp - The timestamp of the view.null if the
DESCRIBE cache is not enabled.QueryHints.DESCRIBE_CACHECopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.