Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 524 for invoke (0.06 sec)

  1. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        }
        if (isDurationBased(method)) {
          arguments.add(Duration.ofMillis(timeout.millis));
        }
        try {
          Object result;
          doingCallLatch.countDown();
          try {
            result = method.invoke(monitor, arguments.toArray());
          } finally {
            callCompletedLatch.countDown();
          }
          if (result == null) {
            return Outcome.SUCCESS;
          } else if ((Boolean) result) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

       * in turn invoke arbitrary code it is not safe to call while holding a lock.
       */
      @SuppressWarnings("Interruption") // We are implementing a user-requested interrupt.
      final void interruptTask() {
        // Since the Thread is replaced by DONE before run() invokes listeners or returns, if we succeed
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java

         * the {@code "Automatic-Module-Name"} attribute of the {@code META-INF/MANIFEST.MF} file if present.
         *
         * <p>A typical usage is to invoke this method for all dependencies having a
         * {@link DependencyScope#TEST TEST} or {@link DependencyScope#TEST_ONLY TEST_ONLY}
         * {@linkplain Dependency#getScope() scope}. An {@code --add-reads} option may need
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Sat Sep 28 09:03:24 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

          if (method.isAnnotationPresent(TestSubtype.class)) {
            method.setAccessible(true);
            SubtypeTester tester = (SubtypeTester) clone();
            tester.method = method;
            method.invoke(tester, new Object[] {null});
          }
        }
      }
    
      private Type getOnlyParameterType() {
        assertThat(method.getGenericParameterTypes()).hasLength(1);
        return method.getGenericParameterTypes()[0];
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

          lastMethodCalled = "invokeAllTimeout";
          lastTimeoutInMillis = unit.toMillis(timeout);
          return inline.invokeAll(tasks, timeout, unit);
        }
    
        // Define the invokeAny methods to invoke the first task
        @Override
        public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
            throws ExecutionException, InterruptedException {
          assertTaskWrapped(tasks);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/cni-watcher.go

    	log := log.WithLabels("cni-event", addCmd)
    
    	log.Debugf("netns: %s", addCmd.Netns)
    
    	// The CNI node plugin should have already checked the pod against the k8s API before forwarding us the event,
    	// but we have to invoke the K8S client anyway, so to be safe we check it again here to make sure we get the same result.
    	ambientPod, err := s.getPodWithRetry(log, addCmd.PodName, addCmd.PodNamespace)
    	if err != nil {
    		return err
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/MoreExecutors.java

              Class.forName("com.google.appengine.api.ThreadManager")
                  .getMethod("currentRequestThreadFactory")
                  .invoke(null);
        } catch (IllegalAccessException | ClassNotFoundException | NoSuchMethodException e) {
          throw new RuntimeException("Couldn't invoke ThreadManager.currentRequestThreadFactory", e);
        } catch (InvocationTargetException e) {
          throwIfUnchecked(e.getCause());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/reflect/Invokable.java

       */
      // All subclasses are owned by us and we'll make sure to get the R type right, including nullness.
      @SuppressWarnings({"unchecked", "nullness"})
      @CanIgnoreReturnValue
      @CheckForNull
      public final R invoke(@CheckForNull T receiver, @Nullable Object... args)
          throws InvocationTargetException, IllegalAccessException {
        return (R) invokeInternal(receiver, checkNotNull(args));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

          lastMethodCalled = "invokeAllTimeout";
          lastTimeoutInMillis = unit.toMillis(timeout);
          return inline.invokeAll(tasks, timeout, unit);
        }
    
        // Define the invokeAny methods to invoke the first task
        @Override
        public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
            throws ExecutionException, InterruptedException {
          assertTaskWrapped(tasks);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/lang/StringUtil.java

        static {
            try {
                final Class<?> sharedSecretsClass = Class.forName("sun.misc.SharedSecrets");
                javaLangAccess = sharedSecretsClass.getDeclaredMethod("getJavaLangAccess").invoke(null);
                final Class<?> javaLangAccessClass = Class.forName("sun.misc.JavaLangAccess");
                newStringUnsafeMethod = javaLangAccessClass.getMethod("newStringUnsafe", char[].class);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top