Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for manual (0.22 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

          return Futures.immediateFailedFuture(t);
        }
    
        @Override
        public void notifyNewValue(@CheckForNull V newValue) {
          if (newValue != null) {
            // The pending load was clobbered by a manual write.
            // Unblock all pending gets, and have them return the new value.
            set(newValue);
          } else {
            // The pending load was removed. Delay notifications until loading completes.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      public void testSegmentPut_evict() {
        int maxSize = 10;
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).maximumSize(maxSize));
    
        // manually add elements to avoid eviction
        int originalCount = 1024;
        LinkedHashMap<Object, Object> originalMap = Maps.newLinkedHashMap();
        for (int i = 0; i < originalCount; i++) {
          Object key = new Object();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

      }
    
      public void testSegmentPut_evict() {
        int maxSize = 10;
        LocalCache<Object, Object> map =
            makeLocalCache(createCacheBuilder().concurrencyLevel(1).maximumSize(maxSize));
    
        // manually add elements to avoid eviction
        int originalCount = 1024;
        LinkedHashMap<Object, Object> originalMap = Maps.newLinkedHashMap();
        for (int i = 0; i < originalCount; i++) {
          Object key = new Object();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/LocalCache.java

          return Futures.immediateFailedFuture(t);
        }
    
        @Override
        public void notifyNewValue(@CheckForNull V newValue) {
          if (newValue != null) {
            // The pending load was clobbered by a manual write.
            // Unblock all pending gets, and have them return the new value.
            set(newValue);
          } else {
            // The pending load was removed. Delay notifications until loading completes.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     * result cursor will both be closed, even if the operation is cancelled or fails.
     *
     * <h4>Manually closing</h4>
     *
     * If you want to close the captured objects manually, after you've used the final result, call
     * {@link #finishToValueAndCloser(ValueAndCloserConsumer, Executor)} to get an object that holds the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Maps.java

       * serial access, it is critical that <b>all</b> access to the backing bimap is accomplished
       * through the returned bimap.
       *
       * <p>It is imperative that the user manually synchronize on the returned map when accessing any
       * of its collection views:
       *
       * <pre>{@code
       * BiMap<Long, String> map = Maps.synchronizedBiMap(
       *     HashBiMap.<Long, String>create());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
Back to top