- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getTimeoutTaskCount (0.12 sec)
-
src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java
Thread.sleep(2000); assertEquals(count, expiredCount); assertEquals(1, TimeoutManager.getInstance().getTimeoutTaskCount()); task.cancel(); Thread.sleep(2000); assertEquals(0, TimeoutManager.getInstance().getTimeoutTaskCount()); assertNull(TimeoutManager.getInstance().thread); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/timer/TimeoutManager.java
start(); return task; } /** * 管理している {@link TimeoutTask}の数を返します。 * * @return 管理している {@link TimeoutTask}の数 */ public synchronized int getTimeoutTaskCount() { return timeoutTaskList.size(); } @Override public void run() { int nThreads = Runtime.getRuntime().availableProcessors() / 2;
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8K bytes - Viewed (0)