Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for policy (0.16 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 May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  4. 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 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  5. 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)
  6. .github/workflows/scorecard.yml

    # This workflow uses actions that are not certified by GitHub. They are provided
    # by a third-party and are governed by separate terms of service, privacy
    # policy, and support documentation.
    
    name: Scorecard supply-chain security
    on:
      # For Branch-Protection check. Only the default branch is supported. See
      # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
      branch_protection_rule:
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 29 23:37:56 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/RangeMap.java

    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface RangeMap<K extends Comparable, V> {
      /*
       * TODO(cpovirk): These docs sometimes say "map" and sometimes say "range map." Pick one, or at
       * least decide on a policy for when to use which.
       */
    
      /**
       * Returns the value associated with the specified key, or {@code null} if there is no such value.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/NullPointerTester.java

    public final class NullPointerTester {
    
      private final ClassToInstanceMap<Object> defaults = MutableClassToInstanceMap.create();
      private final List<Member> ignoredMembers = Lists.newArrayList();
    
      private ExceptionTypePolicy policy = ExceptionTypePolicy.NPE_OR_UOE;
    
      public NullPointerTester() {
        try {
          /*
           * Converter.apply has a non-nullable parameter type but doesn't throw for null arguments. For
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

       * if occurrences == 0. This satisfies both NullPointerTester and
       * CollectionRemoveTester.testRemove_nullAllowed, but it's not clear that it's
       * a good policy, especially because, in order for the test to pass, the
       * parameter must be misleadingly annotated as @Nullable. I suspect that
       * we'll want to remove @Nullable, add an eager checkNotNull, and loosen up
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top