- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 89 for Deferred (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
@Test public void test_promiseChaining_returnsSamePromise() throws Exception { final Deferred<SuggestResponse> deferred = new Deferred<>(); Deferred<SuggestResponse>.Promise promise1 = deferred.promise(); Deferred<SuggestResponse>.Promise promise2 = promise1.then(response -> {}); Deferred<SuggestResponse>.Promise promise3 = promise2.error(error -> {});Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 21.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/index/operations/ContentIndexingOperations.java
* @return A Promise that will be resolved with the SuggestIndexResponse */ public Deferred<SuggestIndexResponse>.Promise indexFromQueryLog(final ContentIndexingContext ctx, final QueryLogReader queryLogReader, final int docPerReq, final long requestInterval) { final Deferred<SuggestIndexResponse> deferred = new Deferred<>(); threadPool.execute(() -> { final long start = System.currentTimeMillis();Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 21.7K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
// Create a real NdrBuffer mock that can handle the deferred field access // But only test the non-deferred parts to avoid field mocking issues // When: Trying to encode (may throw exception due to deferred buffer) // Then: Should at least call the basic encoding methods before hitting deferred assertThrows(Exception.class, () -> {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java
nb.index = idx; nb.deferred = deferred; return nb; } /** * Resets the buffer position to the start. */ public void reset() { this.index = start; length = 0; deferred = this; } /** * Returns the current index position in the buffer. * * @return the current index */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 10.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java
@Mock private NdrBuffer mockDeferredBuffer; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); // Set the deferred field directly since it's a public field, not a method mockNdrBuffer.deferred = mockDeferredBuffer; lenient().when(mockNdrBuffer.derive(anyInt())).thenReturn(mockDeferredBuffer);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
final NdrBuffer nb = new NdrBuffer(this.buf, this.start); nb.index = idx; nb.deferred = this.deferred; return nb; } /** * Resets the buffer position to the start. */ public void reset() { this.index = this.start; this.length = 0; this.deferred = this; } /** * Returns the current index position in the buffer. *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 10.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java
deferred.reject(new SuggesterException("Search failure. Failed shards num:" + searchResponse.getFailedShards())); } else { deferred.resolve(createResponse(searchResponse)); } } @Override public void onFailure(final Exception e) { deferred.reject(new SuggesterException(e.getMessage(), e));
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 13.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerErrorHandlingTest.java
import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicReference; import org.codelibs.fess.suggest.Suggester; import org.codelibs.fess.suggest.concurrent.Deferred; import org.codelibs.fess.suggest.constants.SuggestConstants; import org.codelibs.fess.suggest.entity.SuggestItem; import org.codelibs.fess.suggest.exception.SuggestIndexException;
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 18.7K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java
assertEquals(0, derivedBuffer.start); // Derived buffer starts from the original buffer's start assertEquals(10, derivedBuffer.index); assertSame(ndrBuffer.deferred, derivedBuffer.deferred); // Deferred should be the same as original // Ensure changes to derived buffer don't affect original's index/start derivedBuffer.advance(5); assertEquals(15, derivedBuffer.index);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
}.also { expected -> assertThat(expected).hasMessage("timeout") } } /** * This test reproduces a crash where OkHttp attempted to use a deferred connection when the call * already had a healthy connection. It sets up a deferred connection by stalling the IPv6 * connect, and it sets up a same-connection retry with [ErrorCode.REFUSED_STREAM]. * * https://github.com/square/okhttp/pull/7190 */Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.6K bytes - Click Count (0)