Class CacheEntry

    • Constructor Detail

      • CacheEntry

        public CacheEntry​(Entry entry,
                          String backendID,
                          long entryID)
        Creates a new cache entry with the provided information.
        Parameters:
        entry - The entry for this cache entry.
        backendID - ID of the backend for this cache entry.
        entryID - The entry ID for this cache entry.
    • Method Detail

      • getEntry

        public Entry getEntry()
        Retrieves the entry for this cache entry.
        Returns:
        The entry for this cache entry.
      • getBackendID

        public String getBackendID()
        Retrieves the backend ID for this cache entry.
        Returns:
        ID of the backend for this cache entry.
      • getEntryID

        public long getEntryID()
        Retrieves the entry ID for this cache entry.
        Returns:
        The entry ID for this cache entry.
      • getDN

        public Dn getDN()
        Retrieves the DN for this cache entry.
        Returns:
        The DN for this cache entry.
      • hashCode

        public int hashCode()
        Retrieves the hash code for this cache entry. It will be the integer representation of the entry ID.
        Overrides:
        hashCode in class Object
        Returns:
        The hash code for this cache entry.
      • equals

        public boolean equals​(Object o)
        Indicates whether this cache entry is equal to the provided \ object. They will be considered equal if the provided object is a cache entry with the same entry and entry ID.
        Overrides:
        equals in class Object
        Parameters:
        o - The object for which to make the determination.
        Returns:
        true if the provided object is equal to this cache entry, or false if not.