public static class Timezone.Cache
extends java.lang.Object
Offers some static methods for the configuration of the timezone cache.
| Modifier and Type | Method and Description |
|---|---|
static void |
refresh()
Can refresh the timezone cache in case of a dynamic
update of the underlying timezone repository.
|
static void |
setCacheActive(boolean active)
Aktivates or deactivates the internal cache.
|
static void |
setMinimumCacheSize(int minimumCacheSize)
Updates the size of the internal timezone cache.
|
public static void refresh()
Can refresh the timezone cache in case of a dynamic update of the underlying timezone repository.
First the internal cache will be cleared. Furthermore, if needed the system timezone will be determined again.
public static void setCacheActive(boolean active)
Aktivates or deactivates the internal cache.
The timezone cache is active by default. Switching off the cache can
make the performance worse especially if the underlying Provider
itself has no cache.
active - true if chache shall be active
else falsepublic static void setMinimumCacheSize(int minimumCacheSize)
Updates the size of the internal timezone cache.
minimumCacheSize - new minimum size of cachejava.lang.IllegalArgumentException - if the argument is negative