Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for policy (0.18 sec)

  1. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        }
      }
    
      //////// Implementation /////////
    
      private static final LazyLogger logger = new LazyLogger(CycleDetectingLockFactory.class);
    
      final Policy policy;
    
      private CycleDetectingLockFactory(Policy policy) {
        this.policy = checkNotNull(policy);
      }
    
      /**
       * Tracks the currently acquired locks for each Thread, kept up to date by calls to {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          Policy.setPolicy(policy);
    
          try {
            r.run();
          } finally {
            policy.addPermission(new SecurityPermission("setPolicy"));
            Policy.setPolicy(savedPolicy);
          }
        }
      }
    
      /** Runs a runnable without any permissions. */
      public void runWithoutPermissions(Runnable r) {
        runWithPermissions(r);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          Policy.setPolicy(policy);
    
          try {
            r.run();
          } finally {
            policy.addPermission(new SecurityPermission("setPolicy"));
            Policy.setPolicy(savedPolicy);
          }
        }
      }
    
      /** Runs a runnable without any permissions. */
      public void runWithoutPermissions(Runnable r) {
        runWithPermissions(r);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Monitor.java

      /**
       * Creates a monitor with a non-fair (but fast) ordering policy. Equivalent to {@code
       * Monitor(false)}.
       */
      public Monitor() {
        this(false);
      }
    
      /**
       * Creates a monitor with the given ordering policy.
       *
       * @param fair whether this monitor should use a fair ordering policy rather than a non-fair (but
       *     fast) one
       */
      public Monitor(boolean fair) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

          return;
        }
        Policy oldPolicy = Policy.getPolicy();
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          Policy.setPolicy(new PermissivePolicy());
          System.setSecurityManager(new SecurityManager());
          doTestUnloadable();
        } finally {
          System.setSecurityManager(oldSecurityManager);
          Policy.setPolicy(oldPolicy);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/HttpHeaders.java

      /**
       * The HTTP <a href="https://wicg.github.io/cross-origin-embedder-policy/#COEP-RO">{@code
       * Cross-Origin-Embedder-Policy-Report-Only}</a> header field name.
       *
       * @since 30.0
       */
      public static final String CROSS_ORIGIN_EMBEDDER_POLICY_REPORT_ONLY =
          "Cross-Origin-Embedder-Policy-Report-Only";
      /**
       * The HTTP Cross-Origin-Opener-Policy header field name.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingImmutableCollection.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Dummy class that makes the GWT serialization policy happy. It isn't used on the server-side.
     *
     * @author Hayward Chan
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    class ForwardingImmutableCollection {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 972 bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

     * Attempts to {@code put} an element into a full queue will result in the operation blocking;
     * attempts to {@code take} an element from an empty queue will similarly block.
     *
     * <p>This class supports an optional fairness policy for ordering waiting producer and consumer
     * threads. By default, this ordering is not guaranteed. However, a queue constructed with fairness
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

      private <E extends Enum<E>>
          CycleDetectingLockFactory.WithExplicitOrdering<E> newInstanceWithExplicitOrdering(
              Class<E> enumClass, Policy policy) {
        return new CycleDetectingLockFactory.WithExplicitOrdering<E>(
            policy, CycleDetectingLockFactory.createNodes(enumClass));
      }
    
      public void testDeadlock_twoLocks() {
        // Establish an acquisition order of lockA -> lockB.
        lockA.lock();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (1)
  10. android/guava/src/com/google/common/collect/Queues.java

    @ElementTypesAreNonnullByDefault
    public final class Queues {
      private Queues() {}
    
      // ArrayBlockingQueue
    
      /**
       * Creates an empty {@code ArrayBlockingQueue} with the given (fixed) capacity and nonfair access
       * policy.
       */
      @J2ktIncompatible
      @GwtIncompatible // ArrayBlockingQueue
      public static <E> ArrayBlockingQueue<E> newArrayBlockingQueue(int capacity) {
        return new ArrayBlockingQueue<>(capacity);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
Back to top