@PublicApi
public interface CacheSettings
| Modifier and Type | Method and Description |
|---|---|
Long |
getExpireAfterAccess() |
long |
getExpireAfterAccess(long defaultValue)
Convenience method that returns
getExpireAfterAccess() if it is not null,
otherwise returns the supplied defaultValue. |
Long |
getExpireAfterWrite() |
long |
getExpireAfterWrite(long defaultValue)
Convenience method that returns
getExpireAfterWrite() if it is not null,
otherwise returns the supplied defaultValue. |
Boolean |
getFlushable() |
boolean |
getFlushable(boolean defaultValue)
Convenience method that returns
getFlushable() if it is not null,
otherwise returns the supplied defaultValue. |
Boolean |
getLocal() |
boolean |
getLocal(boolean defaultValue)
Convenience method that returns
getLocal() if it is not null,
otherwise returns the supplied defaultValue. |
Integer |
getMaxEntries() |
int |
getMaxEntries(int defaultValue)
Convenience method that returns
getMaxEntries() if it is not null,
otherwise returns the supplied defaultValue. |
Boolean |
getReplicateAsynchronously() |
boolean |
getReplicateAsynchronously(boolean defaultValue)
Convenience method that returns
getReplicateAsynchronously() if it is not null,
otherwise returns the supplied defaultValue. |
Boolean |
getReplicateViaCopy() |
boolean |
getReplicateViaCopy(boolean defaultValue)
Convenience method that returns
getReplicateViaCopy() if it is not null,
otherwise returns the supplied defaultValue. |
Boolean |
getStatisticsEnabled() |
boolean |
getStatisticsEnabled(boolean defaultValue)
Convenience method that returns
getStatisticsEnabled() ()} if it is not null,
otherwise returns the supplied defaultValue. |
CacheSettings |
override(CacheSettings overrides)
Returns a new
CacheSettings instance where the current settings
are overridden with settings specified in overrides. |
@Nullable Long getExpireAfterAccess()
long getExpireAfterAccess(long defaultValue)
getExpireAfterAccess() if it is not null,
otherwise returns the supplied defaultValue.@Nullable Long getExpireAfterWrite()
long getExpireAfterWrite(long defaultValue)
getExpireAfterWrite() if it is not null,
otherwise returns the supplied defaultValue.@Nullable Boolean getFlushable()
boolean getFlushable(boolean defaultValue)
getFlushable() if it is not null,
otherwise returns the supplied defaultValue.@Nullable Boolean getLocal()
boolean getLocal(boolean defaultValue)
getLocal() if it is not null,
otherwise returns the supplied defaultValue.@Nullable Integer getMaxEntries()
int getMaxEntries(int defaultValue)
getMaxEntries() if it is not null,
otherwise returns the supplied defaultValue.@Nullable Boolean getReplicateAsynchronously()
boolean getReplicateAsynchronously(boolean defaultValue)
getReplicateAsynchronously() if it is not null,
otherwise returns the supplied defaultValue.@Nullable Boolean getReplicateViaCopy()
boolean getReplicateViaCopy(boolean defaultValue)
getReplicateViaCopy() if it is not null,
otherwise returns the supplied defaultValue.@Nullable Boolean getStatisticsEnabled()
boolean getStatisticsEnabled(boolean defaultValue)
getStatisticsEnabled() ()} if it is not null,
otherwise returns the supplied defaultValue.@Nonnull CacheSettings override(@Nonnull CacheSettings overrides)
CacheSettings instance where the current settings
are overridden with settings specified in overrides. Only properties
in overrides that are not null will be applied.overrides - contains the settings to overrideCacheSettings instance with the overrides settings applied.Copyright © 2018 Atlassian. All rights reserved.