|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
org.starhope.appius.physica.Kalendor
public class Kalendor
| Nested Class Summary | |
|---|---|
private static class |
Kalendor.KalendorFutureThread
WRITEME: Document this type. |
| Field Summary | |
|---|---|
private ConcurrentHashMap<Long,Runnable> |
activities
scheduled activities |
private Map<Long,Class<?>> |
owners
What class scheduled things? |
| Constructor Summary | |
|---|---|
Kalendor()
|
|
| Method Summary | |
|---|---|
Runnable |
cancel(long when)
Cancel a scheduled event |
void |
clearMySchedule()
clear all activities for the calling class |
void |
clearScheduleFor(Class<?> klass)
Clear all activities scheduled for a given class |
boolean |
equals(Object obj)
|
private Class<?> |
getCallerClass()
figure out the class who called into one of my routines using stack inspection |
Map<Long,Runnable> |
getMySchedule()
get all scheduled activities for the calling class |
Map<Long,Runnable> |
getSchedule()
Get a set of events that are owned by a given class |
Map<Long,Runnable> |
getScheduleFor(Class<?> klass)
Get a set of events that are owned by a given class |
void |
run()
WRITEME: Document this method brpocock@star-hope.org |
long |
schedule(long when,
Runnable activity)
|
String |
toString()
|
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final ConcurrentHashMap<Long,Runnable> activities
private final Map<Long,Class<?>> owners
| Constructor Detail |
|---|
public Kalendor()
| Method Detail |
|---|
public Runnable cancel(long when)
when - the precise moment at which the event is handled
public void clearMySchedule()
public void clearScheduleFor(Class<?> klass)
klass - the class who registered the scheduled activitypublic boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)private Class<?> getCallerClass()
public Map<Long,Runnable> getMySchedule()
public Map<Long,Runnable> getSchedule()
public Map<Long,Runnable> getScheduleFor(Class<?> klass)
klass - the class who scheduled the events
public void run()
run in interface Runnablerun in class TimerTask
public long schedule(long when,
Runnable activity)
when - when to schedule the activityactivity - what to do
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||