public static int addTimer(long tdelay, long count, TIMER_HANDLER_TYPE handler) { int handlerNum = ++handlerNumber; String hashKey = Integer.toString(handlerNum); timerHashTable.put(handler.getClass().getName(), hashKey); timerHashTable.put(hashKey, handler); return IPC_addTimer(tdelay, count, handlerNum); }
public static int removeTimer(TIMER_HANDLER_TYPE handler) { return removeTimer(handler.getClass()); }