Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 412 for dispatchTo (0.19 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/Dispatcher.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.mockwebserver
    
    abstract class Dispatcher {
      @Throws(InterruptedException::class)
      abstract fun dispatch(request: RecordedRequest): MockResponse
    
      open fun peek(): MockResponse {
        return MockResponse().apply { this.socketPolicy = SocketPolicy.KEEP_OPEN }
      }
    
      open fun shutdown() {}
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Oct 18 12:55:43 UTC 2020
    - 909 bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/Dispatch.java

     * limitations under the License.
     */
    package org.gradle.internal.dispatch;
    
    /**
     * A general purpose sink for a stream of messages.
     *
     * <p>Implementations are not required to be thread-safe.
     */
    public interface Dispatch<T> {
        /**
         * Dispatches the next message. Blocks until the messages has been accepted but generally does not wait for the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go

    	"k8s.io/apiserver/pkg/warning"
    	"k8s.io/klog/v2"
    )
    
    type dispatcher struct {
    	matcher generic.PolicyMatcher
    	authz   authorizer.Authorizer
    }
    
    var _ generic.Dispatcher[PolicyHook] = &dispatcher{}
    
    func NewDispatcher(
    	authorizer authorizer.Authorizer,
    	matcher generic.PolicyMatcher,
    ) generic.Dispatcher[PolicyHook] {
    	return &dispatcher{
    		matcher: matcher,
    		authz:   authorizer,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go

    )
    
    type validatingDispatcher struct {
    	cm     *webhookutil.ClientManager
    	plugin *Plugin
    }
    
    func newValidatingDispatcher(p *Plugin) func(cm *webhookutil.ClientManager) generic.Dispatcher {
    	return func(cm *webhookutil.ClientManager) generic.Dispatcher {
    		return &validatingDispatcher{cm, p}
    	}
    }
    
    var _ generic.VersionedAttributeAccessor = &versionedAttributeAccessor{}
    
    type versionedAttributeAccessor struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 20:24:12 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/sink/LogEventDispatcherTest.groovy

        }
    
        def "ERROR is dispatched to the stderr chain"() {
            when:
            dispatcher.onOutput(event(LogLevel.ERROR))
    
            then:
            0 * stdoutChain.onOutput(_)
            1 * stderrChain.onOutput(_)
        }
    
        def "event without log level is dispatched to both chains"() {
            when:
            dispatcher.onOutput(event(null))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    )
    
    type mutatingDispatcher struct {
    	cm     *webhookutil.ClientManager
    	plugin *Plugin
    }
    
    func newMutatingDispatcher(p *Plugin) func(cm *webhookutil.ClientManager) generic.Dispatcher {
    	return func(cm *webhookutil.ClientManager) generic.Dispatcher {
    		return &mutatingDispatcher{cm, p}
    	}
    }
    
    var _ generic.VersionedAttributeAccessor = &versionedAttributeAccessor{}
    
    type versionedAttributeAccessor struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubTest.groovy

            dispatcher2 != null
            dispatcher1 != dispatcher2
        }
    
        def "can dispatch outgoing messages"() {
            given:
            def dispatcher = hub.getOutgoing("channel", String)
    
            expect:
            dispatcher.dispatch("message 1")
            dispatcher.dispatch("message 2")
        }
    
        def "outgoing messages are dispatched asynchronously to connection"() {
            RemoteConnection<InterHubMessage> outgoing = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

    import okhttp3.internal.threadFactory
    
    /**
     * Policy on when async requests are executed.
     *
     * Each dispatcher uses an [ExecutorService] to run calls internally. If you supply your own
     * executor, it should be able to run [the configured maximum][maxRequests] number of calls
     * concurrently.
     */
    class Dispatcher() {
      internal val lock: ReentrantLock = ReentrantLock()
    
      /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ListenerCallQueue.java

     * #enqueue enqueueing} and then {@linkplain #dispatch dispatching} events.
     *
     * <p>The API of this class is designed to make it easy to achieve the following properties
     *
     * <ul>
     *   <li>Multiple events for the same listener are never dispatched concurrently.
     *   <li>Events for the different listeners are dispatched concurrently.
     *   <li>All events for a given listener dispatch on the provided {@link #executor}.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/interfaces.go

    	Resource    schema.GroupVersionResource
    	Subresource string
    	Kind        schema.GroupVersionKind
    }
    
    // Dispatcher dispatches webhook call to a list of webhooks with admission attributes as argument.
    type Dispatcher interface {
    	// Dispatch a request to the webhooks. Dispatcher may choose not to
    	// call a hook, either because the rules of the hook does not match, or
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 15 03:28:26 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top