- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 789 for getRate (2.07 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
RateLimiter limiter = RateLimiter.create(5.0, 5, SECONDS); assertEquals(5.0, limiter.getRate()); limiter.setRate(10.0); assertEquals(10.0, limiter.getRate()); assertThrows(IllegalArgumentException.class, () -> limiter.setRate(0.0)); assertThrows(IllegalArgumentException.class, () -> limiter.setRate(-10.0)); } public void testAcquireParameterValidation() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/RateLimiter.java
* passed in the factory method that produced this {@code RateLimiter}, and it is only updated * after invocations to {@linkplain #setRate}. */ public final double getRate() { synchronized (mutex()) { return doGetRate(); } } abstract double doGetRate(); /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 04 09:45:04 GMT 2023 - 18.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
RateLimiter limiter = RateLimiter.create(5.0, 5, SECONDS); assertEquals(5.0, limiter.getRate()); limiter.setRate(10.0); assertEquals(10.0, limiter.getRate()); assertThrows(IllegalArgumentException.class, () -> limiter.setRate(0.0)); assertThrows(IllegalArgumentException.class, () -> limiter.setRate(-10.0)); } public void testAcquireParameterValidation() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.6K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java
} /** * Shortcut for <code>getService(ArtifactManager.class).getPath(...)</code> * * @see ArtifactManager#getPath(Artifact) */ @Nonnull @Override public Optional<Path> getArtifactPath(@Nonnull Artifact artifact) { return getService(ArtifactManager.class).getPath(artifact); } /**
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 16:33:18 GMT 2024 - 27.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/storage/AdminStorageAction.java
final PathInfo pi = convertToItem(id); if (StringUtil.isEmpty(pi.getPath()) && StringUtil.isEmpty(pi.getName())) { return StringUtil.EMPTY; } if (StringUtil.isEmpty(pi.getPath())) { return pi.getName(); } return pi.getPath() + "/" + pi.getName(); } public static PathInfo convertToItem(final String id) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 19.9K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java
indent += " "; } } else if (collectStepTrace != null) { if (collectStepTrace.getPath().get(0).getArtifact() == null) { return; } baseName = ArtifactIdUtils.toId(collectStepTrace.getPath().get(0).getArtifact()) .replace(":", "_"); trackingFile = trackingDir.resolve(baseName + ext);
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Wed Apr 12 11:08:37 GMT 2023 - 9.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/storage/ApiAdminStorageAction.java
final PathInfo pi = convertToItem(id); if (StringUtil.isEmpty(pi.getName())) { throwValidationErrorApi(messages -> messages.addErrorsStorageFileNotFound(GLOBAL)); } return asStream(pi.getName()).contentTypeOctetStream().stream(out -> { try { downloadObject(getObjectName(pi.getPath(), pi.getName()), out); } catch (final StorageException e) {
Java - Registered: Mon May 06 08:04:11 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 5.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
} /** * @throws Exception */ @Test public void testReadUTF8() throws Exception { assertThat(FileUtil.readUTF8(getPath("hoge_utf8.txt")), is("あ")); } private String getPath(final String fileName) { return getClass().getName().replace('.', '/').replaceFirst(getClass().getSimpleName(), fileName); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
return f1name.compareToIgnoreCase(f2.getName()); } protected int compareSizes ( SmbFile f1, String f1name, SmbFile f2 ) throws IOException { long diff; if ( f1.isDirectory() != f2.isDirectory() ) { return f1.isDirectory() ? -1 : 1; } if ( f1.isDirectory() ) { return f1name.compareToIgnoreCase(f2.getName()); }
Java - Registered: Sun May 05 00:10:10 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 21.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java
checkThreadPoolName(thread3, 1); assertThat(thread2.getName().substring(0, thread.getName().lastIndexOf('-'))) .isNotEqualTo(thread3.getName().substring(0, thread.getName().lastIndexOf('-'))); } private static void checkThreadPoolName(Thread thread, int threadId) { assertThat(thread.getName()).matches("^pool-\\d+-thread-" + threadId + "$"); } public void testNameFormatWithPercentS_custom() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 7.5K bytes - Viewed (0)