Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for noFurtherConnections (0.52 sec)

  1. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/ConnectionSetTest.groovy

            given:
            def incoming = incomingQueue.getChannel(channel).newEndpoint()
            outgoingQueue.dispatch(outgoingMessage)
    
            when:
            connections.noFurtherConnections()
            def messages = []
            incoming.take(messages)
    
            then:
            messages.size() == 2
            messages[0] instanceof RejectedMessage
            messages[0].payload == "payload"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/ConnectionSet.java

            if (stopping) {
                maybeStop();
            }
        }
    
        /**
         * Called when no further incoming connections will be added.
         */
        public void noFurtherConnections() {
            stopping = true;
            maybeStop();
        }
    
        private void maybeStop() {
            if (connections.isEmpty()) {
                outgoingQueue.discardQueued();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MessageHub.java

                lock.unlock();
            }
        }
    
        /**
         * Signals that no further connections will be added.
         */
        public void noFurtherConnections() {
            lock.lock();
            try {
                connections.noFurtherConnections();
            } finally {
                lock.unlock();
            }
        }
    
        private void assertRunning(String action) {
            if (state != State.Running) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MessageHubBackedObjectConnection.java

                        methodParamClassLoader,
                        argsSerializer)));
    
            connection = completion.create(serializer);
            hub.addConnection(connection);
            hub.noFurtherConnections();
            completion = null;
        }
    
        @Override
        public void requestStop() {
            hub.requestStop();
        }
    
        @Override
        public void stop() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MessageHubTest.groovy

            BoundedDispatch<String> handler = Mock()
    
            given:
            hub.addHandler("channel", handler)
    
            when:
            operation.signal {
                hub.noFurtherConnections()
            }
            thread.blockUntil.notified
    
            then:
            1 * handler.endStream() >> {
                thread.blockUntil.signal
                instant.notified
            }
            0 * _._
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 21.8K bytes
    - Viewed (0)
Back to top