Class CacheOnErrorEvent

  • All Implemented Interfaces:
    CacheEvent

    public class CacheOnErrorEvent
    extends java.lang.Object
    A CacheEvent which informs that accessing the cache has caused an exception.
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      CacheOnErrorEvent​(java.lang.String cacheName, java.lang.Throwable throwable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCacheName()
      Returns the name of the Cache which has created the event.
      java.time.ZonedDateTime getCreationTime()
      Returns the creation time of Cache event.
      CacheEvent.Type getEventType()
      Returns the type of the Cache event.
      java.lang.Throwable getThrowable()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CacheOnErrorEvent

        public CacheOnErrorEvent​(java.lang.String cacheName,
                                 java.lang.Throwable throwable)
    • Method Detail

      • getEventType

        public CacheEvent.Type getEventType()
        Description copied from interface: CacheEvent
        Returns the type of the Cache event.
        Returns:
        the type of the Cache event
      • getThrowable

        public java.lang.Throwable getThrowable()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getCacheName

        public java.lang.String getCacheName()
        Description copied from interface: CacheEvent
        Returns the name of the Cache which has created the event.
        Specified by:
        getCacheName in interface CacheEvent
        Returns:
        the name of the Cache which has created the event
      • getCreationTime

        public java.time.ZonedDateTime getCreationTime()
        Description copied from interface: CacheEvent
        Returns the creation time of Cache event.
        Specified by:
        getCreationTime in interface CacheEvent
        Returns:
        the creation time of Cache event