Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 705 for Records (0.33 seconds)

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

    import static com.google.common.base.StandardSystemProperty.JAVA_SPECIFICATION_VERSION;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.Integer.parseInt;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.lang.reflect.Method;
    import java.util.concurrent.ExecutorService;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  2. src/main/java/jcifs/util/SmbCircuitBreaker.java

            }
            long accepted = total - totalCircuitOpenRejections.get();
            return (accepted * 100.0) / total;
        }
    
        /**
         * Circuit breaker metrics snapshot (Java 17 Record)
         */
        public static record CircuitBreakerMetrics(String name, State currentState, long totalRequests, long totalSuccesses, long totalFailures,
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

        client =
          client
            .newBuilder()
            .connectionPool(ConnectionPool(0, 5, TimeUnit.SECONDS))
            .build()
        server.enqueue(
          MockResponse
            .Builder()
            .code(301)
            .addHeader("Location: /b")
            .bodyDelay(1, TimeUnit.SECONDS)
            .body("a")
            .build(),
        )
        server.enqueue(MockResponse(body = "b"))
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.3K bytes
    - Click Count (1)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static java.util.concurrent.Executors.newFixedThreadPool;
    import static java.util.concurrent.TimeUnit.SECONDS;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.util.ArrayList;
    import java.util.Random;
    import java.util.concurrent.Callable;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        // causing the thread to be suspended for 3.5 seconds, and then park itself for 2 seconds after
        // being resumed. To avoid a flake in this scenario, calculate how long that thread actually
        // waited and assert based on that time. Empirically, the race where the thread ends up waiting
        // for 5.5 seconds happens about 2% of the time.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  6. tests/serializer_test.go

    		t.Fatalf("failed to migrate ProductWithAny, got error %v", err)
    	}
    
    	// Test creating record with nil any field
    	product := ProductWithAny{Name: "Product 1"}
    	if err := DB.Create(&product).Error; err != nil {
    		t.Fatalf("failed to create product with nil any field, got error %v", err)
    	}
    
    	// Test updating/saving record with nil any field (should not panic)
    	product.Name = "Product 1 (Updated)"
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Nov 22 03:14:36 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgrade.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.cling.invoker.mvnup.goals;
    
    /**
     * Plugin upgrade configuration for Maven 4 compatibility.
     * This record holds information about plugins that need to be upgraded
     * to specific minimum versions to work properly with Maven 4.
     *
     * @param groupId the Maven groupId of the plugin
     * @param artifactId the Maven artifactId of the plugin
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat Jun 07 06:22:47 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  8. benchmarks/src/main/java/org/elasticsearch/benchmark/fs/AvailableIndexFoldersBenchmark.java

    import java.nio.file.Path;
    import java.util.HashSet;
    import java.util.Set;
    import java.util.concurrent.TimeUnit;
    
    @Warmup(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS)
    @Measurement(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS)
    @Fork(3)
    @BenchmarkMode(Mode.AverageTime)
    @OutputTimeUnit(TimeUnit.NANOSECONDS)
    @State(Scope.Benchmark)
    public class AvailableIndexFoldersBenchmark {
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Apr 27 15:29:12 GMT 2021
    - 3K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java

            } else if (minutes > 0) {
                return String.format("%02d:%02d min", minutes, seconds);
            } else {
                return String.format("%d.%03d s", seconds, millis);
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 10 15:37:54 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

     * limitations under the License.
     */
    package com.google.common.util.concurrent;
    
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.concurrent.TimeUnit.SECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.util.concurrent.InterruptibleTask.Blocker;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.2K bytes
    - Click Count (0)
Back to Top