- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 120 for timers (0.03 sec)
-
src/main/java/org/codelibs/core/timer/TimeoutManager.java
/** * A class that handles timers. * * @author higa * */ public class TimeoutManager implements Runnable { private static final Logger logger = Logger.getLogger(TimeoutManager.class); /** * Instance for the singleton. */ protected static final TimeoutManager instance = new TimeoutManager(); /** * {@link Thread} for the timer. */ protected Thread thread;
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 7.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java
@RetainedLocalRef Future<?> localTimer = timer; // Try to cancel the timer as an optimization. // timer may be null if this call to run was by the timer task since there is no happens-before // edge between the assignment to timer and an execution of the timer task. if (localTimer != null) { localTimer.cancel(false); } delegateRef = null; timer = null; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java
} /** Tests that the {@link Future#get(long, TimeUnit)} method times out correctly. */ public void testTimeoutOnGetWorksCorrectly() throws InterruptedException, ExecutionException { // The task thread waits for the latch, so we expect a timeout here. try { future.get(20, MILLISECONDS); fail("Should have timed out trying to get the value."); } catch (TimeoutException expected) { } finally {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 6.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/tomcat/valve/SuppressErrorReportValveTest.java
// Test toggling ShowReport multiple times assertFalse(valve.isShowReport()); valve.setShowReport(true); assertTrue(valve.isShowReport()); valve.setShowReport(false); assertFalse(valve.isShowReport()); valve.setShowReport(true); assertTrue(valve.isShowReport()); // Test toggling ShowServerInfo multiple times assertFalse(valve.isShowServerInfo());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/MonitorTarget.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.timer; import java.io.IOException; import java.io.PrintWriter; import java.util.Arrays; import java.util.function.Supplier; import org.apache.commons.io.output.ByteArrayOutputStream; import org.apache.commons.text.StringEscapeUtils; import org.codelibs.core.timer.TimeoutTarget; import org.codelibs.fess.Constants;
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt
} private fun logWithTime(message: String) { val startNs = startNs val timeMs = if (startNs == null) { // Event occurred before start, for an example an early cancel. 0L } else { TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs) } logger.invoke("[$timeMs ms] $message") }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/timer/HotThreadMonitorTargetTest.java
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.timer; import org.codelibs.core.timer.TimeoutTarget; import org.codelibs.fess.unit.UnitFessTestCase; /** * Test class for HotThreadMonitorTarget. */ public class HotThreadMonitorTargetTest extends UnitFessTestCase {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.timer; import java.lang.reflect.Method; import org.codelibs.core.timer.TimeoutTarget; import org.codelibs.fess.unit.UnitFessTestCase; /** * Test class for SystemMonitorTarget. */ public class SystemMonitorTargetTest extends UnitFessTestCase {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 8.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/Task.kt
/** * A unit of work that can be executed one or more times. * * Recurrence * ---------- * * Tasks control their recurrence schedule. The [runOnce] function returns -1L to signify that the * task should not be executed again. Otherwise it returns a delay until the next execution. * * A task has at most one next execution. If the same task instance is scheduled multiple times, the
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.4K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
call: Call, cachedResponse: Response, ) { logWithTime("cacheConditionalHit: $cachedResponse") } private fun logWithTime(message: String) { val timeMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs) logger.log("[$timeMs ms] $message") } open class Factory @JvmOverloads constructor(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Apr 01 11:07:32 UTC 2024 - 5.4K bytes - Viewed (0)