Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 30 for Try (0.03 seconds)

  1. src/main/java/jcifs/smb/SmbFile.java

            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for reading?
                return true;
            }
            return exists(); // try opening and catch sharing violation?
        }
    
        @Override
        public boolean canWrite() throws SmbException {
            if (getType() == TYPE_NAMED_PIPE) { // try opening the pipe for writing?
                return true;
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFile.java

            }
    
            try {
                if (LogStream.level >= 3) {
                    log.println("doConnect: " + addr);
                }
    
                tree.treeConnect(null, null);
            } catch (final SmbAuthException sae) {
                NtlmPasswordAuthentication a;
                SmbSession ssn;
    
                if (share == null) { // IPC$ - try "anonymous" credentials
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

         */
        public long getDocumentCount(final String indexName) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            try {
                client.admin().indices().prepareRefresh(indexName).execute().actionGet(fessConfig.getIndexIndicesTimeout());
                try (CurlResponse response = ComponentUtil.getCurlHelper().get("/" + indexName + "/_count").execute()) {
                    if (response.getHttpStatusCode() == 200) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 138.6K bytes
    - Click Count (1)
  4. guava/src/com/google/common/cache/LocalCache.java

            if (value == null) {
              misses++;
              keysToLoad.add(key);
            } else {
              hits++;
            }
          }
        }
    
        try {
          if (!keysToLoad.isEmpty()) {
            try {
              Map<K, V> newEntries = loadAll(unmodifiableSet(keysToLoad), defaultLoader);
              for (K key : keysToLoad) {
                V value = newEntries.get(key);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/cache/LocalCache.java

            if (value == null) {
              misses++;
              keysToLoad.add(key);
            } else {
              hits++;
            }
          }
        }
    
        try {
          if (!keysToLoad.isEmpty()) {
            try {
              Map<K, V> newEntries = loadAll(unmodifiableSet(keysToLoad), defaultLoader);
              for (K key : keysToLoad) {
                V value = newEntries.get(key);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       */
      @CanIgnoreReturnValue
      public boolean cancel(boolean mayInterruptIfRunning) {
        try {
          return state.cancel(mayInterruptIfRunning);
        } finally {
          reachabilityFence(this);
        }
      }
    
      private <U extends @Nullable Object> ClosingFuture<U> derive(FluentFuture<U> future) {
        try {
          ClosingFuture<U> derived = new ClosingFuture<>(future);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 101.7K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        CountDownLatch gotException = new CountDownLatch(1);
        AsyncFunction<String, String> function =
            unused -> {
              inFunction.countDown();
              try {
                shouldCompleteFunction.await();
              } catch (InterruptedException expected) {
                gotException.countDown();
                throw expected;
              }
              return immediateFuture("a");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        CountDownLatch gotException = new CountDownLatch(1);
        AsyncFunction<String, String> function =
            unused -> {
              inFunction.countDown();
              try {
                shouldCompleteFunction.await();
              } catch (InterruptedException expected) {
                gotException.countDown();
                throw expected;
              }
              return immediateFuture("a");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        new Thread() {
          @Override
          public void run() {
            try {
              map.get(one, loader);
            } catch (ExecutionException e) {
              throw new RuntimeException(e);
            }
            doneSignal.countDown();
          }
        }.start();
    
        try {
          computingSignal.await();
        } catch (InterruptedException e) {
          throw new RuntimeException(e);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        new Thread() {
          @Override
          public void run() {
            try {
              map.get(one, loader);
            } catch (ExecutionException e) {
              throw new RuntimeException(e);
            }
            doneSignal.countDown();
          }
        }.start();
    
        try {
          computingSignal.await();
        } catch (InterruptedException e) {
          throw new RuntimeException(e);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
Back to Top