Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for TimeoutTarget (0.07 seconds)

  1. src/main/java/org/codelibs/core/timer/TimeoutTarget.java

     */
    package org.codelibs.core.timer;
    
    /**
     * This is an interface for handling timeouts.
     *
     * @author higa
     *
     */
    @FunctionalInterface
    public interface TimeoutTarget {
    
        /**
         * Describes the processing for a timeout.
         */
        void expired();
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 872 bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/timer/TimeoutTask.java

        private static final int CANCELED = 2;
    
        private final TimeoutTarget timeoutTarget;
    
        private final long timeoutMillis;
    
        private final boolean permanent;
    
        private long startTime;
    
        private int status = ACTIVE;
    
        TimeoutTask(final TimeoutTarget timeoutTarget, final int timeout, final boolean permanent) {
            this.timeoutTarget = timeoutTarget;
            this.timeoutMillis = timeout * 1000L;
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/timer/HotThreadMonitorTargetTest.java

                    "HotThreadMonitorTarget should extend MonitorTarget");
            assertTrue(TimeoutTarget.class.isAssignableFrom(HotThreadMonitorTarget.class),
                    "HotThreadMonitorTarget should implement TimeoutTarget");
        }
    
        @Test
        public void test_constructor() {
            assertNotNull(target, "Constructor should create instance");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/timer/TimeoutManager.java

        }
    
        /**
         * Adds a {@link TimeoutTarget}.
         *
         * @param timeoutTarget the target
         * @param timeout the timeout duration
         * @param permanent whether the task is permanent
         * @return the {@link TimeoutTask}
         */
        public synchronized TimeoutTask addTimeoutTarget(final TimeoutTarget timeoutTarget, final int timeout, final boolean permanent) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc4ConnectionMonitorTarget.java

    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.timer.TimeoutTarget;
    
    /**
     * Hc4ConnectionMonitorTarget is responsible for monitoring and managing HTTP client connections
     * for Apache HttpComponents 4.x. It implements the TimeoutTarget interface to handle connection
     * expiration events.
     *
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Jan 04 13:09:59 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

            assertTrue(MonitorTarget.class.isAssignableFrom(SystemMonitorTarget.class), "SystemMonitorTarget should extend MonitorTarget");
            assertTrue(TimeoutTarget.class.isAssignableFrom(SystemMonitorTarget.class), "SystemMonitorTarget should implement TimeoutTarget");
        }
    
        @Test
        public void test_constructor() {
            assertNotNull(target, "Constructor should create instance");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc5ConnectionMonitorTarget.java

    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.timer.TimeoutTarget;
    
    /**
     * Hc5ConnectionMonitorTarget is responsible for monitoring and managing HTTP client connections
     * for Apache HttpComponents 5.x. It implements the TimeoutTarget interface to handle connection
     * expiration events.
     *
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Jan 04 13:09:59 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AccessTimeoutTarget.java

    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.lang.ThreadUtil;
    import org.codelibs.core.timer.TimeoutTarget;
    
    /**
     * AccessTimeoutTarget is a class that implements the TimeoutTarget interface.
     * It is used to interrupt a running thread when a timeout occurs.
     * The class provides methods to interrupt the thread and stop the timeout target.
     *
     * <p>
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Jul 06 02:13:03 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/helper/JobHelper.java

        public void setMonitorInterval(final int monitorInterval) {
            this.monitorInterval = monitorInterval;
        }
    
        /**
         * Inner class that implements TimeoutTarget for monitoring job execution.
         */
        static class MonitorTarget implements TimeoutTarget {
    
            /** The job log being monitored */
            private final JobLog jobLog;
    
            /**
             * Constructor for MonitorTarget.
             *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/timer/LoadControlMonitorTarget.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.timer;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.timer.TimeoutTarget;
    import org.codelibs.fess.helper.SystemHelper;
    import org.codelibs.fess.opensearch.client.SearchEngineClient;
    import org.codelibs.fess.util.ComponentUtil;
    import org.opensearch.action.admin.cluster.node.stats.NodeStats;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Tue Feb 10 04:24:02 GMT 2026
    - 3K bytes
    - Click Count (0)
Back to Top