Class InvalidationSet.Invalidation

  • Enclosing class:
    InvalidationSet

    @NotThreadSafe
    public static final class InvalidationSet.Invalidation
    extends java.lang.Object
    Invalidation object representation. It contains all information to execute the actual invalidation.

    This class is intended to be used inside a running transaction and therefore should be used by one thread only!

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int getInvalidationType()
      Returns the type of invalidation.
      java.lang.Object[] getKey()
      Returns the invalidation key array.
      int getTopicDepth()
      Returns the number of key elements to be used for invalidation.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getKey

        public java.lang.Object[] getKey()
        Returns the invalidation key array.

        Please note that the amount of key elements used for invalidation depends upon the number returned by getTopicDepth()! This is mainly because we re-use complete AbstractCacheUnit keys for invalidation instead of creating new arrays all the time.

        See Also:
        getTopicDepth()
      • getTopicDepth

        public int getTopicDepth()
        Returns the number of key elements to be used for invalidation. Consequently this method returns either the full key array length or a lower number. All key elements that exceed this number are simply ignored during invalidation process.
        See Also:
        getKey()
      • toString

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object