- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 295 for InterruptedException (0.1 seconds)
-
src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java
assertNull(result); }); thread1.start(); thread2.start(); try { thread1.join(); thread2.join(); } catch (InterruptedException e) { fail("Thread interrupted"); } } @Test public void test_genericTypeSafety_withSubclass() { // Test that the exception accepts RootAction subclasses
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11K bytes - Click Count (0) -
mockwebserver/README.md
### Java ```java final Dispatcher dispatcher = new Dispatcher() { @Override public MockResponse dispatch (RecordedRequest request) throws InterruptedException { switch (request.getUrl().encodedPath()) { case "/v1/login/auth/": return new MockResponse.Builder() .code(200) .build();
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java
assertFalse("Should not support " + mimeType, thumbnailGenerator.isTarget(docMap)); } } @Test public void test_concurrentOperations() throws InterruptedException { // Test thread safety with concurrent operations final int threadCount = 10; Thread[] threads = new Thread[threadCount]; final boolean[] results = new boolean[threadCount];
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 11.7K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java
} /* * TODO(cpovirk): Clear interrupted status here? We currently don't, which means that an * interrupt before, during, or after runInterruptibly() (unless it produced an * InterruptedException caught above) can linger and affect listeners. */ } /** * Called before runInterruptibly - if true, runInterruptibly and afterRanInterruptibly will not * be called. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 10K bytes - Click Count (0) -
guava/src/com/google/common/base/internal/Finalizer.java
@SuppressWarnings("InfiniteLoopStatement") @Override public void run() { while (true) { try { if (!cleanUp(queue.remove())) { break; } } catch (InterruptedException e) { // ignore } } } /** * Cleans up the given reference and any other references already in the queue. Catches and logs * all throwables. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 03:19:29 GMT 2026 - 9.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
} } @Test @DisplayName("Should test thread safety of setFileId") void testThreadSafety() throws InterruptedException { // Given RequestWithFileId request = new Smb2CloseRequest(mockConfig, emptyFileId); int threadCount = 10; Thread[] threads = new Thread[threadCount];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt
} /** * Like [Object.wait], but throws an [InterruptedIOException] when interrupted instead of the more * awkward [InterruptedException]. */ @Throws(InterruptedIOException::class) internal fun waitForIo() { try { wait() } catch (_: InterruptedException) { Thread.currentThread().interrupt() // Retain interrupted status. throw InterruptedIOException() } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 22.4K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
} finally { monitor.leave(); } } @CanIgnoreReturnValue // pushed down from class to method @Override public @Nullable E poll(long timeout, TimeUnit unit) throws InterruptedException { Monitor monitor = this.monitor; if (monitor.enterWhen(notEmpty, timeout, unit)) { try { return q.poll(); } finally { monitor.leave(); } } else {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 19K bytes - Click Count (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
if (entry != null) { processLogEntry(entry); returnAuditEntry(entry); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); break; } catch (Exception e) { log.error("Error processing audit log entry", e);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 26.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
sink.write(chunk!!) sink.flush() Thread.sleep(100) i += chunk.size } } catch (e: IOException) { ioe = e } catch (e: InterruptedException) { throw RuntimeException(e) } } } @Test fun requestBodyMultipleFailuresReportedOnlyOnce() { val requestBody: RequestBody = object : RequestBody() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 70.7K bytes - Click Count (0)