| Modifier and Type | Field and Description |
|---|---|
| public static final long | AUTO_CLEANUP_DELAY
Set cleanupDelayMillis to this value in order to auto-set it to minimum of 1/10 of expireAfterMillis and 10 minutes |
| private long | |
| private long | |
| public static final long | NO_CLEANUP
Set cleanupDelayMillis to this value in order to switch off time-based cache eviction. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public RepositoryCacheConfig | Returns: this.configuration to read properties from. config)Update properties by setting fields from the configuration. |
| public long | Returns: the delay between the periodic cleanup of expired repository in milliseconds. Default is minimum of 1/10 of expireAfterMillis and 10 minutesGet the delay between the periodic cleanup of expired repository in milliseconds. |
| public long | Returns: the time an unused repository should be expired and be evicted from the RepositoryCache in milliseconds. Default is 1 hour.Get the time an unused repository should be expired and be evicted from the RepositoryCache in milliseconds. |
| public void | |
| public void | setCleanupDelay(long
the delay between the periodic cleanup of expired repository
in milliseconds. Set it to cleanupDelayMillis)AUTO_CLEANUP_DELAY to
automatically derive cleanup delay from expireAfterMillis.
Set it to If cache expiration is switched off the JVM still can evict cache entries when the JVM is running low on available heap memory. Set the delay between the periodic cleanup of expired repository in milliseconds. |
| public void | setExpireAfter(long
the time an unused repository should be expired and be evicted
from the RepositoryCache in milliseconds. expireAfterMillis)Set the time an unused repository should be expired and be evicted from the RepositoryCache in milliseconds. |
| AUTO_CLEANUP_DELAY | back to summary |
|---|---|
| public static final long AUTO_CLEANUP_DELAY Set cleanupDelayMillis to this value in order to auto-set it to minimum of 1/10 of expireAfterMillis and 10 minutes | |
| cleanupDelayMillis | back to summary |
|---|---|
| private long cleanupDelayMillis | |
| expireAfterMillis | back to summary |
|---|---|
| private long expireAfterMillis | |
| NO_CLEANUP | back to summary |
|---|---|
| public static final long NO_CLEANUP Set cleanupDelayMillis to this value in order to switch off time-based cache eviction. Expired cache entries will only be evicted when RepositoryCache.clearExpired or RepositoryCache.clear are called. | |
| RepositoryCacheConfig | back to summary |
|---|---|
| public RepositoryCacheConfig() Create a default configuration. | |
| fromConfig | back to summary |
|---|---|
| public RepositoryCacheConfig fromConfig(Config config) Update properties by setting fields from the configuration. If a property is not defined in the configuration, then it is left unmodified.
| |
| getCleanupDelay | back to summary |
|---|---|
| public long getCleanupDelay() Get the delay between the periodic cleanup of expired repository in milliseconds.
| |
| getExpireAfter | back to summary |
|---|---|
| public long getExpireAfter() Get the time an unused repository should be expired and be evicted from the RepositoryCache in milliseconds.
| |
| install | back to summary |
|---|---|
| public void install() Install this configuration as the live settings. The new configuration is applied immediately. | |
| setCleanupDelay | back to summary |
|---|---|
| public void setCleanupDelay(long cleanupDelayMillis) Set the delay between the periodic cleanup of expired repository in milliseconds.
| |
| setExpireAfter | back to summary |
|---|---|
| public void setExpireAfter(long expireAfterMillis) Set the time an unused repository should be expired and be evicted from the RepositoryCache in milliseconds.
| |