Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 797 for Dispatch (0.26 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonClientConnectionTest.groovy

            out == message
            0 * staleAddressDetector._
        }
    
        def "treats failure to dispatch before receiving as a stale address"() {
            def message = Stub(Message)
            def failure = new FooException()
    
            given:
            delegate.dispatch(message) >> { throw failure }
    
            when:
            connection.dispatch(message)
    
            then:
            def ex = thrown(StaleDaemonAddressException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MessageHub.java

                    rejectedMessageListener = DISCARD;
                }
                Dispatch<Object> dispatch;
                if (handler instanceof Dispatch) {
                    dispatch = Cast.uncheckedNonnullCast(handler);
                } else {
                    dispatch = DISCARD;
                }
                BoundedDispatch<Object> boundedDispatch;
                if (dispatch instanceof BoundedDispatch) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonCancelForwarderTest.groovy

    import org.gradle.internal.dispatch.Dispatch
    import org.gradle.util.ConcurrentSpecification
    
    import java.util.concurrent.LinkedBlockingQueue
    import java.util.concurrent.TimeUnit
    
    class DaemonCancelForwarderTest extends ConcurrentSpecification {
    
        def cancellationToken = new DefaultBuildCancellationToken()
    
        def received = new LinkedBlockingQueue()
        def dispatch = { received << it } as Dispatch
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/AnonymousListenerBroadcast.java

     */
    
    package org.gradle.internal.event;
    
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.MethodInvocation;
    
    public class AnonymousListenerBroadcast<T> extends ListenerBroadcast<T> {
        private final Dispatch<MethodInvocation> forwardingDispatch;
    
        public AnonymousListenerBroadcast(Class<T> type, Dispatch<MethodInvocation> forwardingDispatch) {
            super(type);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/FailureHandlingDispatch.java

     */
    package org.gradle.internal.dispatch;
    
    public class FailureHandlingDispatch<T> implements Dispatch<T> {
        private final Dispatch<? super T> dispatch;
        private final DispatchFailureHandler<? super T> handler;
    
        public FailureHandlingDispatch(Dispatch<? super T> dispatch, DispatchFailureHandler<? super T> handler) {
            this.dispatch = dispatch;
            this.handler = handler;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/eventbus/Dispatcher.java

      abstract void dispatch(Object event, Iterator<Subscriber> subscribers);
    
      /** Implementation of a {@link #perThreadDispatchQueue()} dispatcher. */
      private static final class PerThreadQueuedDispatcher extends Dispatcher {
    
        // This dispatcher matches the original dispatch behavior of EventBus.
    
        /** Per-thread queue of events to dispatch. */
        private final ThreadLocal<Queue<Event>> queue =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/eventbus/Dispatcher.java

      abstract void dispatch(Object event, Iterator<Subscriber> subscribers);
    
      /** Implementation of a {@link #perThreadDispatchQueue()} dispatcher. */
      private static final class PerThreadQueuedDispatcher extends Dispatcher {
    
        // This dispatcher matches the original dispatch behavior of EventBus.
    
        /** Per-thread queue of events to dispatch. */
        private final ThreadLocal<Queue<Event>> queue =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. 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)
  10. platforms/core-runtime/client-services/src/main/java/org/gradle/internal/daemon/client/clientinput/DaemonClientInputForwarder.java

            // Protects the following state
            private final Object lock = new Object();
            private boolean closed;
    
            public ForwardingUserInput(InputStream inputStream, Dispatch<? super InputMessage> dispatch, Executor executor) {
                this.dispatch = dispatch;
                this.reader = new BufferedReader(new InputStreamReader(inputStream, Charset.defaultCharset()));
                this.executor = executor;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top