Package org.opends.server.types
Class CacheEntry
- java.lang.Object
-
- org.opends.server.types.CacheEntry
-
@PublicAPI(stability=VOLATILE, mayInstantiate=true, mayExtend=false, mayInvoke=true, notes="This should only be used within a backend") public final class CacheEntry extends Object
This class defines a Directory Server cache entry, which is simply used to store an entry with its associated backend and entry ID.
-
-
Constructor Summary
Constructors Constructor Description CacheEntry(Entry entry, String backendID, long entryID)
Creates a new cache entry with the provided information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Indicates whether this cache entry is equal to the provided \ object.String
getBackendID()
Retrieves the backend ID for this cache entry.Dn
getDN()
Retrieves the DN for this cache entry.Entry
getEntry()
Retrieves the entry for this cache entry.long
getEntryID()
Retrieves the entry ID for this cache entry.int
hashCode()
Retrieves the hash code 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.
-
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.
-
-