| java.lang.Object org.tigris.scarab.services.cache.ScarabCacheKey
ScarabCacheKey | public class ScarabCacheKey implements Serializable,Recyclable(Code) | | author: John McNally version: $Id: ScarabCacheKey.java 9255 2004-11-14 21:07:04Z dep4b $ |
Constructor Summary | |
public | ScarabCacheKey() | public | ScarabCacheKey(Serializable instanceOrClass, String method) | public | ScarabCacheKey(Serializable instanceOrClass, String method, Serializable arg1) | public | ScarabCacheKey(Serializable instanceOrClass, String method, Serializable arg1, Serializable arg2) | public | ScarabCacheKey(Serializable instanceOrClass, String method, Serializable arg1, Serializable arg2, Serializable arg3) | public | ScarabCacheKey(Serializable[] moreThanThree) |
Method Summary | |
public void | dispose() Disposes the object after use. | public boolean | equals(Object obj) | public int | hashCode() | public void | init(Serializable instanceOrClass, String method) Initialize key for method with no arguments.
Parameters: instanceOrClass - the Object on which the method is invoked. | public void | init(Serializable instanceOrClass, String method, Serializable arg1) Initialize key for method with one argument.
Parameters: instanceOrClass - the Object on which the method is invoked. | public void | init(Serializable instanceOrClass, String method, Serializable arg1, Serializable arg2) Initialize key for method with two arguments.
Parameters: instanceOrClass - the Object on which the method is invoked. | public void | init(Serializable instanceOrClass, String method, Serializable arg1, Serializable arg2, Serializable arg3) Initialize key for method with two arguments.
Parameters: instanceOrClass - the Object on which the method is invoked. | public void | init(Serializable[] keys) Initialize key for method with more than two arguments. | public boolean | isDisposed() Checks whether the object is disposed. | public void | recycle() Recycles the object by removing its disposed flag. |
ScarabCacheKey | public ScarabCacheKey()(Code) | | |
dispose | public void dispose()(Code) | | Disposes the object after use. The method is called when the
object is returned to its pool. The dispose method must call
its super.
|
hashCode | public int hashCode()(Code) | | |
init | public void init(Serializable instanceOrClass, String method)(Code) | | Initialize key for method with no arguments.
Parameters: instanceOrClass - the Object on which the method is invoked. if the method is static, a String representing the class name is used. Parameters: method - the method name |
init | public void init(Serializable instanceOrClass, String method, Serializable arg1)(Code) | | Initialize key for method with one argument.
Parameters: instanceOrClass - the Object on which the method is invoked. if the method is static, a String representing the class name is used. Parameters: method - the method name Parameters: arg1 - first method arg, may be null |
init | public void init(Serializable instanceOrClass, String method, Serializable arg1, Serializable arg2)(Code) | | Initialize key for method with two arguments.
Parameters: instanceOrClass - the Object on which the method is invoked. if the method is static, a String representing the class name is used. Parameters: method - the method name Parameters: arg1 - first method arg, may be null Parameters: arg2 - second method arg, may be null |
init | public void init(Serializable instanceOrClass, String method, Serializable arg1, Serializable arg2, Serializable arg3)(Code) | | Initialize key for method with two arguments.
Parameters: instanceOrClass - the Object on which the method is invoked. if the method is static, a String representing the class name is used. Parameters: method - the method name Parameters: arg1 - first method arg, may be null Parameters: arg2 - second method arg, may be null |
init | public void init(Serializable[] keys)(Code) | | Initialize key for method with more than two arguments.
Parameters: keys - Serializable[] where[0]=>the Object on which the method is invokedif the method is static, a String representing the class name is used.[1]=>the method name[n] where n>1 are the method arguments |
isDisposed | public boolean isDisposed()(Code) | | Checks whether the object is disposed.
true, if the object is disposed. |
recycle | public void recycle()(Code) | | Recycles the object by removing its disposed flag.
|
|
|