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 String
getCacheKey()
Return the name of the cache.ServerCacheOptions
getCacheOptions()
Return the tuning options.QueryCacheEntryValidate
getQueryCacheEntryValidate()
Return the service that provides validation for query cache entries.String
getShortName()
Return the short name for the cache.CurrentTenantProvider
getTenantProvider()
Return the current tenant provider.ServerCacheType
getType()
Return the cache type.boolean
isQueryCache()
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.
-
-