org.apache.manifoldcf.authorities.authority
Class AuthorityConnectionManager.AuthorityConnectionDescription

java.lang.Object
  extended by org.apache.manifoldcf.core.cachemanager.BaseDescription
      extended by org.apache.manifoldcf.authorities.authority.AuthorityConnectionManager.AuthorityConnectionDescription
All Implemented Interfaces:
ICacheDescription
Enclosing class:
AuthorityConnectionManager

protected static class AuthorityConnectionManager.AuthorityConnectionDescription
extends BaseDescription

This is the object description for a repository connection object.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.manifoldcf.core.cachemanager.BaseDescription
BaseDescription.LocalCacheClass
 
Field Summary
protected  StringSet cacheKeys
           
protected  java.lang.String connectionName
           
protected  java.lang.String criticalSectionName
           
 
Fields inherited from class org.apache.manifoldcf.core.cachemanager.BaseDescription
_rcsid, cacheClass, max_value
 
Constructor Summary
AuthorityConnectionManager.AuthorityConnectionDescription(java.lang.String connectionName, StringSet invKeys)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getConnectionName()
           
 java.lang.String getCriticalSectionName()
          Get the critical section name for this description object.
 StringSet getObjectKeys()
          Get the cache keys for an object (which may or may not exist yet in the cache).
 int hashCode()
           
 
Methods inherited from class org.apache.manifoldcf.core.cachemanager.BaseDescription
getObjectClass, getObjectExpirationTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionName

protected java.lang.String connectionName

criticalSectionName

protected java.lang.String criticalSectionName

cacheKeys

protected StringSet cacheKeys
Constructor Detail

AuthorityConnectionManager.AuthorityConnectionDescription

public AuthorityConnectionManager.AuthorityConnectionDescription(java.lang.String connectionName,
                                                                 StringSet invKeys)
Method Detail

getConnectionName

public java.lang.String getConnectionName()

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

getCriticalSectionName

public java.lang.String getCriticalSectionName()
Description copied from interface: ICacheDescription
Get the critical section name for this description object. This is used to synchronize creation of the described object, and thus is used only for objects that will be cached. This method does not need to return decent results for objects that are never cached.

Returns:
the critical section name.

getObjectKeys

public StringSet getObjectKeys()
Get the cache keys for an object (which may or may not exist yet in the cache). This method is called in order for cache manager to throw the correct locks.

Returns:
the object's cache keys, or null if the object should not be cached.