|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--org.apache.cocoon.framework.Monitor
This class watches over the changes of indicated resources.
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Constructor Summary | |
Monitor(int capacity)
Create this class with the given starting capacity. |
Method Summary | |
boolean |
hasChanged(java.lang.Object context)
Queries the monitor for changes. |
void |
invalidate(java.lang.Object context)
Invalidates the given context. |
static long |
timestamp(java.lang.Object resource)
Create a timestamp indicating the last modified time of the given resource. |
void |
watch(java.lang.Object key,
java.lang.Object resource)
Tells the monitor to watch the given resource, timestamps it and associate it to the given key. |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Monitor(int capacity)
Method Detail |
public void watch(java.lang.Object key, java.lang.Object resource)
public boolean hasChanged(java.lang.Object context)
public void invalidate(java.lang.Object context)
public static long timestamp(java.lang.Object resource)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |