public class CacheUtilsH2 extends Object
| Constructor and Description |
|---|
CacheUtilsH2() |
| Modifier and Type | Method and Description |
|---|---|
static CacheFrontend |
createCacheFrontend(String dbName,
boolean dbInMemory,
long cacheTTL)
Create a cache frontend based on H2 database
|
static QueryExecutionFactory |
createQueryExecutionFactory(QueryExecutionFactory decoratee,
String dbName,
boolean dbInMemory,
long cacheTTL)
Create a QueryExecutionFactory that uses an H2 database as a cache
|
public static CacheFrontend createCacheFrontend(String dbName, boolean dbInMemory, long cacheTTL)
dbName - the name of the DBdbInMemory - true creates this database in memory, otherwise in a filecacheTTL - the Time-To-Live for the cacheRuntimeException - in case of errorpublic static QueryExecutionFactory createQueryExecutionFactory(QueryExecutionFactory decoratee, String dbName, boolean dbInMemory, long cacheTTL)
decoratee - the QueryExecutionFactory we want to decoratedbName - the name of the DBdbInMemory - true creates this database in memory, otherwise in a filecacheTTL - the Time-To-Live for the cacheRuntimeException - in case of errorCopyright © 2014. All rights reserved.