Cached

For classes whose title is to be cached, use DomainObjectLayout#titleUiEvent() with a subclass of org.apache.causeway.applib.CausewayModuleApplib.TitleUiEvent that implements this marker interface.

The cache configuration will by default be taken from org.apache.causeway.core.config.CausewayConfiguration.Extensions.Titlecache , but if the CachedWithCacheSettings is implemented, then these defaults can be fine-tuned.

API

Cached.java
interface Cached {
  int expiryDurationInMinutes()     (1)
  int maxSizeInEntries()     (2)
}
1 expiryDurationInMinutes()

The number of minutes that a title should stay in the cache (of a given logical type name)

2 maxSizeInEntries()

The maximum number of entries that can reside in the cache (of a given logical type name).

Members

expiryDurationInMinutes()

The number of minutes that a title should stay in the cache (of a given logical type name)

maxSizeInEntries()

The maximum number of entries that can reside in the cache (of a given logical type name).