Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for dispatchTo (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/plugin.go

    			},
    			func(a authorizer.Authorizer, m *matching.Matcher) generic.Dispatcher[PolicyHook] {
    				return NewDispatcher(a, generic.NewPolicyMatcher(m))
    			},
    		),
    	}
    }
    
    // Validate makes an admission decision based on the request attributes.
    func (a *Plugin) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) error {
    	return a.Plugin.Dispatch(ctx, attr, o)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/actor/internal/DefaultActorFactory.java

    import org.gradle.internal.dispatch.AsyncDispatch;
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.DispatchException;
    import org.gradle.internal.dispatch.ExceptionTrackingFailureHandler;
    import org.gradle.internal.dispatch.FailureHandlingDispatch;
    import org.gradle.internal.dispatch.MethodInvocation;
    import org.gradle.internal.dispatch.ProxyDispatchAdapter;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/AbstractBroadcastDispatch.java

                case 1:
                    dispatch(invocation, dispatchers.get(0));
                    break;
                default:
                    dispatch(invocation, dispatchers.iterator());
                    break;
            }
        }
    
        /**
         * Dispatch an invocation to multiple handlers.
         */
        private void dispatch(MethodInvocation invocation, Iterator<? extends Dispatch<MethodInvocation>> handlers) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/ProxyDispatchAdapter.java

                    return otherHandler.type.equals(type) && otherHandler.dispatch == dispatch;
                }
    
                if (method.getName().equals("hashCode")) {
                    return dispatch.hashCode();
                }
                if (method.getName().equals("toString")) {
                    return type.getSimpleName() + " broadcast";
                }
                dispatch.dispatch(new MethodInvocation(method, parameters));
                return null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/clientinput/StdInStreamTest.groovy

            }
    
            then:
            1 * dispatch.onOutput({ it instanceof ReadStdInEvent }) >> { instant.requested1 }
            1 * dispatch.onOutput({ it instanceof ReadStdInEvent }) >> { instant.requested2 }
        }
    
        def "read bytes returns when stream is closed"() {
            def dispatch = Mock(OutputEventListener)
            def stream = new StdInStream(dispatch)
    
            when:
            async {
                start {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/listener/ClosureBackedMethodInvocationDispatch.java

     * limitations under the License.
     */
    
    package org.gradle.listener;
    
    import groovy.lang.Closure;
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.MethodInvocation;
    
    import java.util.Arrays;
    
    public class ClosureBackedMethodInvocationDispatch implements Dispatch<MethodInvocation> {
        private final String methodName;
        private final Closure closure;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 12:43:02 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonClientConnection.java

            return daemon;
        }
    
        @Override
        public void dispatch(Message message) throws DaemonConnectionException {
            LOG.debug("thread {}: dispatching {}", Thread.currentThread().getId(), message.getClass());
            try {
                dispatchLock.lock();
                try {
                    connection.dispatch(message);
                    connection.flush();
                } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 06:43:50 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/NativeImageTestsAccessors.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal
    
    import okhttp3.Cache
    import okhttp3.Dispatcher
    import okhttp3.Response
    import okhttp3.internal.connection.Exchange
    import okhttp3.internal.connection.RealCall
    import okhttp3.internal.connection.RealConnection
    import okio.FileSystem
    import okio.Path
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

      fun setUp() {
        platform.assumeLoom()
        assertThat(System.getProperty("jdk.tracePinnedThreads")).isNotEmpty()
    
        client =
          OkHttpClient.Builder()
            .trustMockServer()
            .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor()))
            .build()
    
        executor = newVirtualThreadPerTaskExecutor()
    
        // Capture non-deterministic but probable sysout warnings of pinned threads
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 11:15:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/fixture/CrossVersionToolingApiSpecificationRetryTest.groovy

            throwWhen(new IOException("Could not dispatch a message to the daemon.", new IOException("An existing connection was forcibly closed by the remote host")), iteration == 1)
    
            then:
            IOException ioe = thrown()
            ioe.message == "Could not dispatch a message to the daemon."
        }
    
        private static void throwWhen(Throwable throwable, boolean condition) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top