Class AbstractCacheEvent
java.lang.Object
io.github.resilience4j.cache.event.AbstractCacheEvent
- All Implemented Interfaces:
CacheEvent
- Direct Known Subclasses:
CacheOnErrorEvent, CacheOnHitEvent, CacheOnMissEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface CacheEvent
CacheEvent.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the Cache which has created the event.Returns the creation time of Cache event.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CacheEvent
getEventType
-
Field Details
-
cacheName
-
creationTime
-
-
Constructor Details
-
AbstractCacheEvent
AbstractCacheEvent(String cacheName)
-
-
Method Details
-
getCacheName
Description copied from interface:CacheEventReturns the name of the Cache which has created the event.- Specified by:
getCacheNamein interfaceCacheEvent- Returns:
- the name of the Cache which has created the event
-
getCreationTime
Description copied from interface:CacheEventReturns the creation time of Cache event.- Specified by:
getCreationTimein interfaceCacheEvent- Returns:
- the creation time of Cache event
-