Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for Deferred (0.08 sec)

  1. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

    import org.codelibs.core.exception.InterruptedRuntimeException;
    import org.codelibs.fess.suggest.exception.SuggesterException;
    import org.codelibs.fess.suggest.request.Response;
    
    public class Deferred<RESPONSE extends Response> {
        private RESPONSE response = null;
    
        private Throwable error = null;
    
        private final Promise promise = new Promise();
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

            deferred.promise().then(response -> latch.countDown());
            assertTrue(latch.await(10, TimeUnit.SECONDS));
        }
    
        @Test
        public void test_doneAfterResolve() throws Exception {
            final Deferred<SuggestResponse> deferred = new Deferred<>();
    
            Thread th = new Thread(() -> {
                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/request/Request.java

            }
    
            final Deferred<T> deferred = new Deferred<>();
            try {
                processRequest(client, deferred);
            } catch (final Exception e) {
                throw new SuggesterException(e);
            }
            return deferred.promise();
        }
    
        protected abstract void processRequest(Client client, Deferred<T> deferred);
    
        protected abstract String getValidationError();
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

        }
    
    
        public int getLength () {
            return this.deferred.length;
        }
    
    
        public void setLength ( int length ) {
            this.deferred.length = length;
        }
    
    
        public void advance ( int n ) {
            this.index += n;
            if ( ( this.index - this.start ) > this.deferred.length ) {
                this.deferred.length = this.index - this.start;
            }
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.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(e);
                }
            });
        }
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

        public int length;
        public NdrBuffer deferred;
    
        public NdrBuffer(byte[] buf, int start) {
            this.buf = buf;
            this.start = index = start;
            length = 0;
            deferred = this;
        }
    
        public NdrBuffer derive(int idx) {
            NdrBuffer nb = new NdrBuffer(buf, start);
            nb.index = idx;
            nb.deferred = deferred;
            return nb;
        }
    
    
        
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 6.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/request/RequestBuilder.java

    import org.codelibs.fess.suggest.concurrent.Deferred;
    import org.opensearch.client.Client;
    
    public abstract class RequestBuilder<Req extends Request<Res>, Res extends Response> {
        protected Client client;
        protected Req request;
    
        public RequestBuilder(final Client client, final Req request) {
            this.client = client;
            this.request = request;
        }
    
        public Deferred<Res>.Promise execute() {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/rpc.java

                _dst.enc_ndr_short(length);
                _dst.enc_ndr_short(maximum_length);
                _dst.enc_ndr_referent(buffer, 1);
    
                if (buffer != null) {
                    _dst = _dst.deferred;
                    int _bufferl = length / 2;
                    int _buffers = maximum_length / 2;
                    _dst.enc_ndr_long(_buffers);
                    _dst.enc_ndr_long(0);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/platform/android/DeferredSocketAdapter.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform.android
    
    import javax.net.ssl.SSLSocket
    import okhttp3.Protocol
    
    /**
     * Deferred implementation of SocketAdapter that works by observing the socket
     * and initializing on first use.
     *
     * We use this because eager classpath checks cause confusion and excessive logging in Android,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/rpc.java

                _dst.enc_ndr_short(this.length);
                _dst.enc_ndr_short(this.maximum_length);
                _dst.enc_ndr_referent(this.buffer, 1);
    
                if ( this.buffer != null ) {
                    _dst = _dst.deferred;
                    int _bufferl = this.length / 2;
                    int _buffers = this.maximum_length / 2;
                    _dst.enc_ndr_long(_buffers);
                    _dst.enc_ndr_long(0);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:40:13 UTC 2019
    - 8.8K bytes
    - Viewed (0)
Back to top