Package io.ebean.cache
Class ServerCacheConfig
- java.lang.Object
-
- io.ebean.cache.ServerCacheConfig
-
public class ServerCacheConfig extends Object
Configuration used to create ServerCache instances.
-
-
Constructor Summary
Constructors Constructor Description ServerCacheConfig(ServerCacheType type, String cacheKey, String shortName, ServerCacheOptions cacheOptions, CurrentTenantProvider tenantProvider, QueryCacheEntryValidate queryCacheEntryValidate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCacheKey()Return the name of the cache.ServerCacheOptionsgetCacheOptions()Return the tuning options.QueryCacheEntryValidategetQueryCacheEntryValidate()Return the service that provides validation for query cache entries.StringgetShortName()Return the short name for the cache.CurrentTenantProvidergetTenantProvider()Return the current tenant provider.ServerCacheTypegetType()Return the cache type.booleanisQueryCache()Return true if the cache is a query cache.
-
-
-
Constructor Detail
-
ServerCacheConfig
public ServerCacheConfig(ServerCacheType type, String cacheKey, String shortName, ServerCacheOptions cacheOptions, CurrentTenantProvider tenantProvider, QueryCacheEntryValidate queryCacheEntryValidate)
-
-
Method Detail
-
getType
public ServerCacheType getType()
Return the cache type.
-
getCacheKey
public String getCacheKey()
Return the name of the cache.
-
getShortName
public String getShortName()
Return the short name for the cache.
-
getCacheOptions
public ServerCacheOptions getCacheOptions()
Return the tuning options.
-
getTenantProvider
public CurrentTenantProvider getTenantProvider()
Return the current tenant provider.
-
getQueryCacheEntryValidate
public QueryCacheEntryValidate getQueryCacheEntryValidate()
Return the service that provides validation for query cache entries.
-
isQueryCache
public boolean isQueryCache()
Return true if the cache is a query cache.
-
-