org.apache.cocoon.caching
Class IdentifierCacheKey

java.lang.Object
  extended by org.apache.cocoon.caching.IdentifierCacheKey
All Implemented Interfaces:
Serializable

public class IdentifierCacheKey
extends Object
implements Serializable

This is a "simple" cache key that does not consider the components used in the pipeline. It simply consists of a key (unique identifier for the request) and a boolean value that defines if the key is for a complete pipeline call or for an internal pipeline call.

Since:
2.1.1
Version:
CVS $Id: IdentifierCacheKey.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler
See Also:
Serialized Form

Field Summary
protected  String cacheKey
          cache key
protected  boolean external
          Is this an external pipeline call?
protected  String key
          The key
protected  String toString
          cache toString()
 
Constructor Summary
IdentifierCacheKey(String key, boolean external)
          Constructor
 
Method Summary
 boolean equals(Object object)
          Compare
 String getKey()
          The cache key
 int hashCode()
          Generate a hash code
 String toString()
          toString The FilesystemStore uses toString!
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected final String key
The key


external

protected final boolean external
Is this an external pipeline call?


cacheKey

protected final String cacheKey
cache key


toString

protected String toString
cache toString()

Constructor Detail

IdentifierCacheKey

public IdentifierCacheKey(String key,
                          boolean external)
Constructor

Method Detail

equals

public boolean equals(Object object)
Compare

Overrides:
equals in class Object

hashCode

public int hashCode()
Generate a hash code

Overrides:
hashCode in class Object

toString

public String toString()
toString The FilesystemStore uses toString!

Overrides:
toString in class Object

getKey

public String getKey()
The cache key



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.