|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
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 | |
---|---|
CacheEntry(Entry entry,
Backend backend,
long entryID)
Creates a new cache entry with the provided information. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether this cache entry is equal to the provided \ object. |
Backend |
getBackend()
Retrieves the backend 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. |
void |
setBackend(Backend backend)
Specifies the backend for this cache entry. |
void |
setEntry(Entry entry)
Specifies the entry for this cache entry. |
void |
setEntryID(long entryID)
Specifies the entry ID for this cache entry. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheEntry(Entry entry, Backend backend, long entryID)
entry
- The entry for this cache entry.backend
- The backend for this cache entry.entryID
- The entry ID for this cache entry.Method Detail |
---|
public Entry getEntry()
public void setEntry(Entry entry)
entry
- The entry for this cache entry.public Backend getBackend()
public void setBackend(Backend backend)
backend
- The backend for this cache entry.public long getEntryID()
public void setEntryID(long entryID)
entryID
- The entryID for this cache entry.public DN getDN()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object for which to make the determination.
true
if the provided object is equal to
this cache entry, or false
if not.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |