mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
Merge pull request #2630 from ebean-orm/feature/deprecated-serverCacheManager
Remove deprecated methods in ebean-api - ServerCacheManager ServerCacheRegion
This commit is contained in:
2 files changed
-57
No files matched your search
@@ -23,14 +23,6 @@ public interface ServerCacheManager {
|
|||||||
*/
|
*/
|
||||||
boolean localL2Caching();
|
boolean localL2Caching();
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated migrate to localL2Caching().
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
default boolean isLocalL2Caching() {
|
|
||||||
return localL2Caching();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return all the cache regions.
|
* Return all the cache regions.
|
||||||
*/
|
*/
|
||||||
@@ -46,77 +38,36 @@ public interface ServerCacheManager {
|
|||||||
*/
|
*/
|
||||||
void enabledRegions(String regions);
|
void enabledRegions(String regions);
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated migrate to enabledRegions().
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
default void setEnabledRegions(String regions) {
|
|
||||||
enabledRegions(regions);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Enable or disable all the cache regions.
|
* Enable or disable all the cache regions.
|
||||||
*/
|
*/
|
||||||
void allRegionsEnabled(boolean enabled);
|
void allRegionsEnabled(boolean enabled);
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated migrate to allRegionsEnabled().
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
default void setAllRegionsEnabled(boolean enabled) {
|
|
||||||
allRegionsEnabled(enabled);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the cache region by name. Typically, to enable or disable the region.
|
* Return the cache region by name. Typically, to enable or disable the region.
|
||||||
*/
|
*/
|
||||||
ServerCacheRegion region(String name);
|
ServerCacheRegion region(String name);
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
default ServerCacheRegion getRegion(String name) {
|
|
||||||
return region(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the cache for mapping natural keys to id values.
|
* Return the cache for mapping natural keys to id values.
|
||||||
*/
|
*/
|
||||||
ServerCache naturalKeyCache(Class<?> beanType);
|
ServerCache naturalKeyCache(Class<?> beanType);
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
default ServerCache getNaturalKeyCache(Class<?> beanType) {
|
|
||||||
return naturalKeyCache(beanType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the cache for beans of a particular type.
|
* Return the cache for beans of a particular type.
|
||||||
*/
|
*/
|
||||||
ServerCache beanCache(Class<?> beanType);
|
ServerCache beanCache(Class<?> beanType);
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
default ServerCache getBeanCache(Class<?> beanType) {
|
|
||||||
return beanCache(beanType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the cache for associated many properties of a bean type.
|
* Return the cache for associated many properties of a bean type.
|
||||||
*/
|
*/
|
||||||
ServerCache collectionIdsCache(Class<?> beanType, String propertyName);
|
ServerCache collectionIdsCache(Class<?> beanType, String propertyName);
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
default ServerCache getCollectionIdsCache(Class<?> beanType, String propertyName) {
|
|
||||||
return collectionIdsCache(beanType, propertyName);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the cache for query results of a particular type of bean.
|
* Return the cache for query results of a particular type of bean.
|
||||||
*/
|
*/
|
||||||
ServerCache queryCache(Class<?> beanType);
|
ServerCache queryCache(Class<?> beanType);
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
default ServerCache getQueryCache(Class<?> beanType) {
|
|
||||||
return queryCache(beanType);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This clears both the bean and query cache for a given type.
|
* This clears both the bean and query cache for a given type.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -10,14 +10,6 @@ public interface ServerCacheRegion {
|
|||||||
*/
|
*/
|
||||||
String name();
|
String name();
|
||||||
|
|
||||||
/**
|
|
||||||
* Deprecated migrate to name().
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
default String getName() {
|
|
||||||
return name();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if the cache region is enabled.
|
* Return true if the cache region is enabled.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in new issue
Block a user