Search Options

Results per page
Sort
Preferred Languages
Advance

Results 681 - 690 of 838 for useEmpty (0.06 sec)

  1. cmd/admin-handlers-site-replication.go

    		} else {
    			policy, perr := policy.ParseConfig(bytes.NewReader(item.Policy))
    			if perr != nil {
    				writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, perr), r.URL)
    				return
    			}
    			if policy.IsEmpty() {
    				err = globalSiteReplicationSys.PeerAddPolicyHandler(ctx, item.Name, nil, item.UpdatedAt)
    			} else {
    				err = globalSiteReplicationSys.PeerAddPolicyHandler(ctx, item.Name, policy, item.UpdatedAt)
    			}
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. internal/ringbuffer/ring_buffer.go

    	return buf
    }
    
    // IsFull returns this ringbuffer is full.
    func (r *RingBuffer) IsFull() bool {
    	r.mu.Lock()
    	defer r.mu.Unlock()
    
    	return r.isFull
    }
    
    // IsEmpty returns this ringbuffer is empty.
    func (r *RingBuffer) IsEmpty() bool {
    	r.mu.Lock()
    	defer r.mu.Unlock()
    
    	return !r.isFull && r.w == r.r
    }
    
    // CloseWithError closes the writer; reads will return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

      fun idleLatch(): CountDownLatch {
        taskRunner.lock.withLock {
          // If the queue is already idle, that's easy.
          if (activeTask == null && futureTasks.isEmpty()) {
            return CountDownLatch(0)
          }
    
          // If there's an existing AwaitIdleTask, use it. This is necessary when the executor is
          // shutdown but still busy as we can't enqueue in that case.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java

                        repositories.addAll(artifactDescriptorRequest.getRepositories());
                    }
                    if (!repositories.isEmpty()) {
                        trackingData.add("Configured repositories:");
                        for (RemoteRepository r : repositories) {
                            trackingData.add(" - " + r.getId() + " : " + r.getUrl());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. internal/event/target/nsq.go

    	QueueDir   string `json:"queueDir"`
    	QueueLimit uint64 `json:"queueLimit"`
    }
    
    // Validate NSQArgs fields
    func (n NSQArgs) Validate() error {
    	if !n.Enable {
    		return nil
    	}
    
    	if n.NSQDAddress.IsEmpty() {
    		return errors.New("empty nsqdAddress")
    	}
    
    	if n.Topic == "" {
    		return errors.New("empty topic")
    	}
    	if n.QueueDir != "" {
    		if !filepath.IsAbs(n.QueueDir) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

            result.get(10, SECONDS);
          }
          // TODO(cpovirk): Verify that the cancelled futures are exactly ones that we expect.
        }
    
        assertThat(logHandler.getStoredLogRecords()).isEmpty();
      }
    
      public void testAvoidsStackOverflow_manySubmitted() throws Exception {
        final SettableFuture<@Nullable Void> settableFuture = SettableFuture.create();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

                        logger.debug("Exception on SID processing.", e);
                    }
                }
            }
        }
    
        protected String preprocessUri(final String uri) {
            if (StringUtil.isEmpty(uri)) {
                throw new CrawlerSystemException("The uri is empty.");
            }
    
            return uri;
        }
    
        protected String geCharSet(final SmbFile file) {
            return charset;
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

                    addTextParameter(request, item);
                } else {
                    showFileFieldParameter(item);
                    final String itemName = item.getName();
                    if (itemName != null && !itemName.isEmpty()) {
                        addFileParameter(item);
                    }
                }
            }
        }
    
        // -----------------------------------------------------
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Oct 23 13:27:21 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/AllTests.java

            try ( FileChannel ch = FileChannel.open(config, StandardOpenOption.READ);
                  InputStream is = Channels.newInputStream(ch) ) {
                props.load(is);
    
            }
            if ( !props.isEmpty() ) {
                Map<String, String> map = toMap(props);
                String cfgname = fname.substring(0, fname.length() - 5);
                configs.put(cfgname, map);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 14.4K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                    // ModelBuildingEx is thrown only on FATAL and ERROR severities, but we still can have WARNs
                    // that may lead to unexpected build failure, log them
                    if (!modelResult.getProblems().isEmpty()) {
                        List<ModelProblem> problems = modelResult.getProblems();
                        if (logger.isDebugEnabled()) {
                            String problem = (problems.size() == 1) ? "problem" : "problems";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top