Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 343 for dispatchTo (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/actor/Actor.java

    import org.gradle.internal.concurrent.ThreadSafe;
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.DispatchException;
    import org.gradle.internal.dispatch.MethodInvocation;
    
    /**
     * <p>An {@code Actor} dispatches method calls to a target object in a thread-safe manner. Methods are called either by
     * calling {@link Dispatch#dispatch(Object)} on the actor, or using the proxy object
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/ListenerBroadcastTest.groovy

            then:
            1 * dispatch1.dispatch(invocation)
            then:
            1 * dispatch2.dispatch(invocation)
            0 * _._
        }
    
        def 'visit listeners does not visit dispatch instances'() {
            def dispatch = Mock(Dispatch)
            def visitor = Mock(Action)
    
            given:
            broadcast.add(dispatch)
    
            when:
            broadcast.visitListeners(visitor)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top