|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Traceable
An interface to traceable resources.
| Method Summary | |
|---|---|
void |
addTraceListener(TraceListener listener)
Adds a listener if not already present. |
void |
clearTraceListeners()
Clears all listeners from this traceable. |
long |
getLastInitialized()
Gets the timestamp of the last initialization of the traced object. |
long |
getLastModified()
Gets the timestamp of the last modification of the traced object. |
long |
getLastModified(Object key)
Gets the timestamp of the last modification of the specified resource. |
void |
removeTraceListener(TraceListener listener)
Removes a listener. |
void |
setLastModified(Object key,
long timestamp)
Sets the timestamp of the last modification of the specified resource. |
| Method Detail |
|---|
long getLastInitialized()
long getLastModified()
long getLastModified(Object key)
key - the key of the resource.
void setLastModified(Object key,
long timestamp)
key - the key of the resource.timestamp - the modification timestamp.void addTraceListener(TraceListener listener)
listener - a listener to add.
NullPointerException - if listener is null.void removeTraceListener(TraceListener listener)
listener - the listener to remove.void clearTraceListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||