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 FusedView
s (aka shards).queryEngine
- The QueryEngine
.public void init()
ICacheConnection
init
in interface ICacheConnection
public void close()
ICacheConnection
close
in interface ICacheConnection
public void destroyCaches(String namespace, long timestamp)
ICacheConnection
destroyCaches
in interface ICacheConnection
namespace
- 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)
ICacheConnection
getDescribeCache
in interface ICacheConnection
namespace
- The KB namespace.timestamp
- The timestamp of the view.null
if the
DESCRIBE cache is not enabled.QueryHints.DESCRIBE_CACHE
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.