org.wso2.carbon.registry.core.caching
Class RegistryCacheKey

java.lang.Object
  extended by org.wso2.carbon.registry.core.caching.RegistryCacheKey
All Implemented Interfaces:
Serializable

public class RegistryCacheKey
extends Object
implements Serializable

The container class for the cache key used in the registry kernel

See Also:
Serialized Form

Constructor Summary
RegistryCacheKey(String path, int tenantId, String connectionURL)
          Creates a new key for an entry to be cached.
 
Method Summary
 boolean equals(Object key)
          
 String getPath()
          Method to obtain resource path on cache key.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryCacheKey

public RegistryCacheKey(String path,
                        int tenantId,
                        String connectionURL)
Creates a new key for an entry to be cached.

Parameters:
path - the resource path.
tenantId - the tenant identifier.
connectionURL - the JDBC connection URL.
Method Detail

getPath

public String getPath()
Method to obtain resource path on cache key.

Returns:
resource path on cache key.

equals

public boolean equals(Object key)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2014 WSO2 Inc. All Rights Reserved.