|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface CacheSettings
An immutable representation of settings for a Cache. The property getters will return null to indicate that no setting is specified. The caller is responsible for handling that null may be returned.
| Method Summary | |
|---|---|
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. |
CacheSettings |
override(CacheSettings overrides)
Returns a new CacheSettings instance where the current settings
are overridden with settings specified in overrides. |
| Method Detail |
|---|
@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.
@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 override
CacheSettings instance with the overrides settings applied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||