Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 797 for Dispatch (0.16 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/Connection.java

     */
    
    package org.gradle.internal.remote.internal;
    
    import org.gradle.internal.concurrent.Stoppable;
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.Receive;
    
    /**
     * <p>A messaging endpoint which allows push-style dispatch and pull-style receive.
     *
     * <p>Implementations are not guaranteed to be completely thread-safe.
     * However, the implementations:
     * <ul>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/ReportStatusDispatcherTest.groovy

        def connection = Mock(Connection)
    
        def "ignores failed dispatch and does not receive"() {
            given:
            def message = new ReportStatus(UUID.randomUUID(), "TOKEN".bytes)
            connection.dispatch(message) >> { throw new RuntimeException("Cannot dispatch") }
    
            when:
            dispatcher.dispatch(connection, message)
    
            then:
            0 * connection.receive()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/StopDispatcherTest.groovy

        def dispatcher = new StopDispatcher()
        def connection = Mock(Connection)
    
        def "ignores failed dispatch and does not receive"() {
            given:
            def message = new Stop(UUID.randomUUID())
            connection.dispatch(message) >> { throw new RuntimeException("Cannot dispatch") }
    
            when:
            dispatcher.dispatch(connection, message)
    
            then:
            0 * connection.receive()
            noExceptionThrown()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ContextClassLoaderDispatchTest.groovy

        }
    
        public void cleanup() {
            Thread.currentThread().contextClassLoader = original
        }
    
        def 'sets ContextClassLoader during dispatch'() {
            when:
            dispatch.dispatch('message')
    
            then:
            1 * target.dispatch('message') >> {
                assertContextClassloaderIs(appClassLoader)
            }
            0 * _._
    
            assertContextClassloaderIs(original)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. src/runtime/debugcall.go

    	})
    }
    
    func debugCallWrap2(dispatch uintptr) {
    	// Call the dispatch function and trap panics.
    	var dispatchF func()
    	dispatchFV := funcval{dispatch}
    	*(*unsafe.Pointer)(unsafe.Pointer(&dispatchF)) = noescape(unsafe.Pointer(&dispatchFV))
    
    	var ok bool
    	defer func() {
    		if !ok {
    			err := recover()
    			debugCallPanicked(err)
    		}
    	}()
    	dispatchF()
    	ok = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DaemonCancelForwarder.java

        public DaemonCancelForwarder(final Dispatch<? super Cancel> dispatch, BuildCancellationToken cancellationToken) {
            this.cancellationToken = cancellationToken;
            cancellationCallback = new Runnable() {
                @Override
                public void run() {
                    LOGGER.info("Request daemon to cancel build...");
                    dispatch.dispatch(new Cancel());
                }
            };
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/queue/QueueInitializer.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.remote.internal.hub.queue;
    
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.remote.internal.hub.protocol.EndOfStream;
    import org.gradle.internal.remote.internal.hub.protocol.InterHubMessage;
    
    public class QueueInitializer {
        private EndOfStream endOfStream;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/actor/internal/DefaultActorFactorySpec.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.actor.internal
    
    import org.gradle.internal.concurrent.ThreadSafe
    import org.gradle.internal.dispatch.DispatchException
    import org.gradle.internal.dispatch.MethodInvocation
    import org.gradle.test.fixtures.concurrent.ConcurrentSpec
    
    class DefaultActorFactorySpec extends ConcurrentSpec {
        private final TargetObject target = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/eventbus/AsyncEventBus.java

    /**
     * An {@link EventBus} that takes the Executor of your choice and uses it to dispatch events,
     * allowing dispatch to occur asynchronously.
     *
     * @author Cliff Biffle
     * @since 10.0
     */
    @ElementTypesAreNonnullByDefault
    public class AsyncEventBus extends EventBus {
    
      /**
       * Creates a new AsyncEventBus that will use {@code executor} to dispatch events. Assigns {@code
       * identifier} as the bus's name for logging purposes.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:05:46 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/ListenerBroadcast.java

     * limitations under the License.
     */
    
    package org.gradle.internal.event;
    
    import org.gradle.api.Action;
    import org.gradle.internal.dispatch.Dispatch;
    import org.gradle.internal.dispatch.MethodInvocation;
    import org.gradle.internal.dispatch.ProxyDispatchAdapter;
    
    import java.util.Collection;
    
    /**
     * <p>Manages a set of listeners of type T. Provides an implementation of T which can be used to broadcast to all
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top