Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 90 for AddListener (0.18 sec)

  1. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/ListenerManager.java

         *
         * <p>The listener will not receive events that are currently being broadcast from some other thread.
         *
         * @param listener the listener to add.
         */
        void addListener(Object listener);
    
        /**
         * Removes a listener.  A single object can implement multiple interfaces, and all interfaces are unregistered by a
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonExpirationIntegrationTest.groovy

                        def freeMemory
                        CountDownLatch latch = new CountDownLatch(1)
                        def memoryManager = services.get(MemoryManager.class)
                        memoryManager.addListener(new OsMemoryStatusListener() {
                            public void onOsMemoryStatus(OsMemoryStatus osMemoryStatus) {
                                freeMemory = osMemoryStatus.getPhysicalMemory().getFree()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/exec/BuildOutcomeReportingBuildActionRunner.java

            StartParameter startParameter = action.getStartParameter();
            TaskExecutionStatisticsEventAdapter taskStatisticsCollector = new TaskExecutionStatisticsEventAdapter();
            listenerManager.addListener(taskStatisticsCollector);
    
            BuildLogger buildLogger = buildLoggerFactory.create(Logging.getLogger(BuildLogger.class), startParameter, buildStartedTime, buildRequestMetaData);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docsTest/java/org/gradle/docs/samples/RunNotifierWrapper.java

            notifier.fireTestFinished(description);
        }
    
        @Override
        public void pleaseStop() {
            notifier.pleaseStop();
        }
    
        @Override
        public void addListener(RunListener listener) {
            // Not meant to be called by a client
            throw new UnsupportedOperationException();
        }
    
        @Override
        public void removeListener(RunListener listener) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

          Class<X> exceptionType,
          Function<? super X, ? extends V> fallback,
          Executor executor) {
        CatchingFuture<V, X> future = new CatchingFuture<>(input, exceptionType, fallback);
        input.addListener(future, rejectionPropagatingExecutor(executor, future));
        return future;
      }
    
      static <X extends Throwable, V extends @Nullable Object> ListenableFuture<V> create(
          ListenableFuture<? extends V> input,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/ProgressLoggingConsumerActionExecutorTest.groovy

            connection.run(action)
    
            then:
            1 * loggingProvider.listenerManager >> listenerManager
            1 * loggingProvider.progressLoggerFactory >> progressLoggerFactory
            1 * listenerManager.addListener(!null)
            1 * progressLoggerFactory.newOperation(ProgressLoggingConsumerActionExecutor.class) >> progressLogger
            1 * progressLogger.setDescription('Build')
            1 * progressLogger.started()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TestExecutionRequestActionRunner.java

                TestExecutionResultEvaluator testExecutionResultEvaluator = new TestExecutionResultEvaluator(ancestryTracker, testExecutionRequestAction);
                buildOperationListenerManager.addListener(testExecutionResultEvaluator);
                try {
                    doRun(testExecutionRequestAction, buildController);
                } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/DefaultMemoryManagerTest.groovy

         * Registers an OS memory status update to initialize the values.
         */
        def newMemoryManager(OsMemoryInfo memoryInfo) {
            def listenerManager = Mock(ListenerManager) {
                1 * addListener(_) >> { args -> osMemoryStatusListener = args[0] }
            }
            def memoryManager = new DefaultMemoryManager(memoryInfo, jvmMemoryInfo, listenerManager, Stub(ExecutorFactory), 0.25, false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 23:56:19 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

       *
       * <p>When selecting an executor, note that {@code directExecutor} is dangerous in some cases. See
       * the discussion in the {@link ListenableFuture#addListener ListenableFuture.addListener}
       * documentation.
       */
      public void add(Runnable runnable, Executor executor) {
        // Fail fast on a null. We throw NPE here because the contract of Executor states that it throws
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 21:17:24 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

          Class<X> exceptionType,
          Function<? super X, ? extends V> fallback,
          Executor executor) {
        CatchingFuture<V, X> future = new CatchingFuture<>(input, exceptionType, fallback);
        input.addListener(future, rejectionPropagatingExecutor(executor, future));
        return future;
      }
    
      static <X extends Throwable, V extends @Nullable Object> ListenableFuture<V> create(
          ListenableFuture<? extends V> input,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top