Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CatchAndRecordFailures (0.25 sec)

  1. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/DefaultExecutorFactory.java

            }
        }
    
        @Override
        public ManagedExecutor create(String displayName) {
            ManagedExecutor executor = new TrackedManagedExecutor(createExecutor(displayName), new ExecutorPolicy.CatchAndRecordFailures());
            executors.add(executor);
            return executor;
        }
    
        protected ExecutorService createExecutor(String displayName) {
            return Executors.newCachedThreadPool(newThreadFactory(displayName));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java

        private boolean workerCompleted;
        private boolean stopSeen;
        private final CountDownLatch doneSignal = new CountDownLatch(1);
        private final ExecutorPolicy.CatchAndRecordFailures failureHandler = new ExecutorPolicy.CatchAndRecordFailures();
    
        public ExclusiveCacheAccessingWorker(String displayName, ExclusiveCacheAccessCoordinator cacheAccess) {
            this.displayName = displayName;
            this.cacheAccess = cacheAccess;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:50 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/impl/DefaultGradleEnterprisePluginBackgroundJobExecutors.java

                new LinkedBlockingQueue<>(),
                new BackgroundThreadFactory()
            );
            poolExecutor.allowCoreThreadTimeOut(true);
    
            return new ManagedExecutorImpl(poolExecutor, new ExecutorPolicy.CatchAndRecordFailures());
        }
    
        @Inject
        public DefaultGradleEnterprisePluginBackgroundJobExecutors(DevelocityPluginUnsafeConfigurationService unsafeConfigurationService) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 29 16:27:53 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ExecutorPolicy.java

        void onStop();
    
        /**
         * Runs the Runnable, catches all Throwables and logs them.
         *
         * The first exception caught during onExecute(), will be rethrown in onStop().
         */
        class CatchAndRecordFailures implements ExecutorPolicy {
            private static final Logger LOGGER = LoggerFactory.getLogger(DefaultExecutorFactory.class);
            private final AtomicReference<Throwable> failure = new AtomicReference<Throwable>();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top