Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 215 for dispatchTo (0.46 sec)

  1. mockwebserver/README.md

    ```
    
    #### Dispatcher
    
    By default MockWebServer uses a queue to specify a series of responses. Use a
    Dispatcher (`import okhttp3.mockwebserver.Dispatcher`) to handle requests using another policy. One natural policy is to
    dispatch on the request path.
    You can, for example, filter the request instead of using `server.enqueue()`.
    
    ```java
    final Dispatcher dispatcher = new Dispatcher() {
    
        @Override
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

    import mockwebserver3.SocketPolicy.StallSocketAtStart
    
    internal fun Dispatcher.wrap(): mockwebserver3.Dispatcher {
      if (this is QueueDispatcher) return this.delegate
    
      val delegate = this
      return object : mockwebserver3.Dispatcher() {
        override fun dispatch(request: mockwebserver3.RecordedRequest): mockwebserver3.MockResponse {
          return delegate.dispatch(request.unwrap()).wrap()
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

    import java.util.concurrent.LinkedBlockingQueue
    import java.util.logging.Logger
    import okhttp3.ExperimentalOkHttpApi
    
    /**
     * Default dispatcher that processes a script of responses. Populate the script by calling [enqueueResponse].
     */
    @ExperimentalOkHttpApi
    open class QueueDispatcher : Dispatcher() {
      protected val responseQueue: BlockingQueue<MockResponse> = LinkedBlockingQueue()
      private var failFastResponse: MockResponse? = null
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/plugin.go

    	return nil
    }
    
    func (c *Plugin[H]) Dispatch(
    	ctx context.Context,
    	a admission.Attributes,
    	o admission.ObjectInterfaces,
    ) (err error) {
    	if !c.enabled {
    		return nil
    	} else if c.shouldIgnoreResource(a) {
    		return nil
    	} else if !c.WaitForReady() {
    		return admission.NewForbidden(a, fmt.Errorf("not yet ready to handle request"))
    	}
    
    	return c.dispatcher.Dispatch(ctx, a, o, c.source.Hooks())
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go

    	*admission.Handler
    
    	sourceFactory sourceFactory
    
    	hookSource       Source
    	clientManager    *webhookutil.ClientManager
    	namespaceMatcher *namespace.Matcher
    	objectMatcher    *object.Matcher
    	dispatcher       Dispatcher
    	filterCompiler   cel.FilterCompiler
    	authorizer       authorizer.Authorizer
    }
    
    var (
    	_ genericadmissioninit.WantsExternalKubeClientSet = &Webhook{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/api/DaemonConnection.java

         */
        void onCancel(@Nullable Runnable handler);
    
        /**
         * Dispatches a daemon unavailable message to the client.
         */
        void daemonUnavailable(DaemonUnavailable unavailable);
    
        /**
         * Dispatches a build started message to the client.
         */
        void buildStarted(BuildStarted buildStarted);
    
        /**
         * Dispatches a log event message to the client.
         */
        void logEvent(OutputEvent logEvent);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/SynchronizedDispatchConnection.java

                    // Safety check: dispatching a message should not cause the thread to dispatch another message (eg should not do any logging)
                    throw new IllegalStateException("This thread is already dispatching a message.");
                }
                dispatching = true;
                try {
                    delegate.dispatch(message);
                    delegate.flush();
                } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/ContextClassLoaderProxy.java

     * limitations under the License.
     */
    
    package org.gradle.internal.dispatch;
    
    /**
     * Creates a proxy object which sets the context ClassLoader when invoking methods on the target object.
     */
    public class ContextClassLoaderProxy<T> {
        private final ProxyDispatchAdapter<T> adapter;
    
        /**
         * Creates a proxy which dispatches to the given target object.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/DispatchFailureHandler.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.internal.dispatch;
    
    public interface DispatchFailureHandler<T> {
        /**
         * Called when a message could not be dispatched. This method can throw an exception to abort further dispatching.
         */
        void dispatchFailed(T message, Throwable failure);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 892 bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/QueueDispatcher.kt

     * limitations under the License.
     */
    package okhttp3.mockwebserver
    
    import mockwebserver3.QueueDispatcher
    
    class QueueDispatcher : Dispatcher() {
      internal val delegate = QueueDispatcher()
    
      @Throws(InterruptedException::class)
      override fun dispatch(request: RecordedRequest): MockResponse {
        throw UnsupportedOperationException("unexpected call")
      }
    
      override fun peek(): MockResponse {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Oct 18 12:55:43 UTC 2020
    - 1.3K bytes
    - Viewed (0)
Back to top