Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getTimeoutTaskCount (0.1 sec)

  1. 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)
  2. 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)
Back to top