Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Mask (0.13 sec)

  1. src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java

            Thread.sleep(10);
            int count = expiredCount;
            task.stop();
            TimeoutManager.getInstance().start();
            assertNotNull(TimeoutManager.getInstance().thread);
            Thread.sleep(2000);
            assertEquals(count, expiredCount);
            assertEquals(1, TimeoutManager.getInstance().getTimeoutTaskCount());
            task.cancel();
            Thread.sleep(2000);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/concurrent/CommonPoolUtil.java

        }
    
        public static void execute(final Runnable task) {
            ForkJoinPool.commonPool().execute(() -> {
                final Thread currentThread = Thread.currentThread();
                final ClassLoader orignal = currentThread.getContextClassLoader();
                currentThread.setContextClassLoader(CommonPoolUtil.class.getClassLoader());
                try {
                    task.run();
                } catch (final Exception e) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.5K bytes
    - Viewed (1)
  3. src/main/java/org/codelibs/core/timer/TimeoutManager.java

                final TimeoutTask task = e.getElement();
                if (task.isCanceled()) {
                    e.remove();
                } else if (!task.isStopped() && task.isExpired()) {
                    expiredTask.add(task);
                    if (!task.isPermanent()) {
                        e.remove();
                    }
                }
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top