Class CacheOnHitEvent<K>
java.lang.Object
io.github.resilience4j.cache.event.CacheOnHitEvent<K>
- All Implemented Interfaces:
CacheEvent
A CacheEvent which informs about a cache hit.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.resilience4j.cache.event.CacheEvent
CacheEvent.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the Cache which has created the event.Returns the creation time of Cache event.Returns the type of the Cache event.toString()
-
Constructor Details
-
CacheOnHitEvent
-
-
Method Details
-
getEventType
Description copied from interface:CacheEvent
Returns the type of the Cache event.- Returns:
- the type of the Cache event
-
getCacheKey
-
toString
-
getCacheName
Description copied from interface:CacheEvent
Returns the name of the Cache which has created the event.- Specified by:
getCacheName
in interfaceCacheEvent
- Returns:
- the name of the Cache which has created the event
-
getCreationTime
Description copied from interface:CacheEvent
Returns the creation time of Cache event.- Specified by:
getCreationTime
in interfaceCacheEvent
- Returns:
- the creation time of Cache event
-