public interface CacheModeStrategy extends Serializable
Modifier and Type | Method and Description |
---|---|
CacheMode |
getCacheMode()
Returns the cache mode to be used for an operation where
CacheMode.DYNAMIC is the configured cache mode. |
CacheMode getCacheMode()
CacheMode.DYNAMIC
is the configured cache mode.
This method is called prior to every operation where CacheMode.DYNAMIC
applies. The returned value is then used as the
effective cache mode for the operation.
This method may not return null
or CacheMode.DYNAMIC
.
If it does, an IllegalArgumentException
will be thrown by the
operation where CacheMode.DYNAMIC
is used.
Copyright (c) 2004, 2013 Oracle and/or its affiliates. All rights reserved.