|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Updateable
An interface for objects that need to be reminded to update themselves from time to time.
Two update styles are supported: blank and named. A blank update leaves the decision about what has to be updated to the implementation whereas a named update guarantees that only objects with a given name are updated.
Blank updates are well suited for recurring events where a set of objects has to be refreshed periodically. Named updates correspond to "push" methodology where the decision to update a specific set of objects is made on an ad hoc basis.
FileTemplateCache
Method Summary | |
---|---|
void |
update()
Asks for a "blank" update. |
void |
update(java.lang.String name)
Asks for the named object to be updated. |
void |
update(java.lang.String name,
java.lang.String type)
Asks for the named object to be updated. |
Method Detail |
---|
void update() throws java.lang.InterruptedException
java.lang.InterruptedException
- The current thread was interrupted during
the update. Callers should either throw the exception back up the
call stack, or set the interrupted status by using the
Thread.currentThread().interrupt()
method.void update(java.lang.String name) throws java.lang.InterruptedException
name
- the name of the object to update
java.lang.InterruptedException
- The current thread was interrupted during
the update. Callers should either throw the exception back up the
call stack, or set the interrupted status by using the
Thread.currentThread().interrupt()
method.void update(java.lang.String name, java.lang.String type) throws java.lang.InterruptedException
name
- the name of the object to updatetype
- the type of the object to update
java.lang.InterruptedException
- The current thread was interrupted during
the update. Callers should either throw the exception back up the
call stack, or set the interrupted status by using the
Thread.currentThread().interrupt()
method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |