Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,261 for loader (0.66 sec)

  1. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

         * </ol>
         * <p>
         * However, if both the class loader that loaded the target class and the class loader that loaded this class can be obtained,
         * and the class loader that loaded the target class is an ancestor of the class loader that loaded this class,
         * the class loader that loaded this class is returned.
         * </p>
         *
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheRefreshTest.java

        assertThat(loader.getLoadCount()).isEqualTo(expectedLoads);
        assertThat(loader.getReloadCount()).isEqualTo(expectedReloads);
    
        ticker.advance(1, MILLISECONDS);
        assertThat(cache.getUnchecked(0)).isEqualTo(1);
        assertThat(cache.getUnchecked(1)).isEqualTo(-1);
        assertThat(cache.getUnchecked(2)).isEqualTo(3);
        assertThat(loader.getLoadCount()).isEqualTo(expectedLoads);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheLoader.java

     * overridden as desired.
     *
     * <p>Usage example:
     *
     * {@snippet :
     * CacheLoader<Key, Graph> loader = new CacheLoader<Key, Graph>() {
     *   public Graph load(Key key) throws AnyException {
     *     return createExpensiveGraph(key);
     *   }
     * };
     * LoadingCache<Key, Graph> cache = CacheBuilder.newBuilder().build(loader);
     * }
     *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. cmd/metrics-v3-types.go

    // JoinBucketLoaders - joins multiple bucket loaders into a single loader,
    // similar to `JoinLoaders`.
    func JoinBucketLoaders(loaders ...BucketMetricsLoaderFn) BucketMetricsLoaderFn {
    	return func(ctx context.Context, m MetricValues, c *metricsCache, b []string) error {
    		for _, loader := range loaders {
    			if err := loader(ctx, m, c, b); err != nil {
    				return err
    			}
    		}
    		return nil
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Feb 28 19:33:08 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/Resources.java

       * {@linkplain Thread#getContextClassLoader() context class loader}. In simple environments, the
       * context class loader will find resources from the class path. In environments where different
       * threads can have different class loaders, for example app servers, the context class loader
       * will typically have been set to an appropriate loader for the current thread.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/ResourceUtil.java

            assertArgumentNotNull("loader", loader);
    
            if (path == null || loader == null) {
                return null;
            }
            final String p = getResourcePath(path, extension);
            return loader.getResource(p);
        }
    
        /**
         * Returns the resource as a stream from the context class loader.
         *
         * @param path
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        }
      }
    
      /**
       * On a concurrent computation that returns null, all threads should get an
       * InvalidCacheLoadException, with the loader only called once. The result should not be cached (a
       * later request should call the loader again).
       */
      private static void testConcurrentLoadingNull(CacheBuilder<Object, Object> builder)
          throws InterruptedException {
    
        int count = 10;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheRefreshTest.java

        assertThat(loader.getLoadCount()).isEqualTo(expectedLoads);
        assertThat(loader.getReloadCount()).isEqualTo(expectedReloads);
    
        ticker.advance(1, MILLISECONDS);
        assertThat(cache.getUnchecked(0)).isEqualTo(1);
        assertThat(cache.getUnchecked(1)).isEqualTo(-1);
        assertThat(cache.getUnchecked(2)).isEqualTo(3);
        assertThat(loader.getLoadCount()).isEqualTo(expectedLoads);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        }
      }
    
      /**
       * On a concurrent computation that returns null, all threads should get an
       * InvalidCacheLoadException, with the loader only called once. The result should not be cached (a
       * later request should call the loader again).
       */
      private static void testConcurrentLoadingNull(CacheBuilder<Object, Object> builder)
          throws InterruptedException {
    
        int count = 10;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 91.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/internal/Finalizer.java

     * loader. That way, this class doesn't prevent the main class loader from getting garbage
     * collected, and this class can detect when the main class loader has been garbage collected and
     * stop itself.
     */
    public class Finalizer implements Runnable {
    
      private static final Logger logger = Logger.getLogger(Finalizer.class.getName());
    
      /** Name of FinalizableReference.class. */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top