Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 318 for reflection (0.06 sec)

  1. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

                List<ChannelInfo> list = new ArrayList<>(channels);
                return list.get(ThreadLocalRandom.current().nextInt(list.size()));
            }
    
            // Weighted random selection
            int random = ThreadLocalRandom.current().nextInt(totalWeight);
            int currentWeight = 0;
    
            for (ChannelInfo channel : channels) {
                currentWeight += channel.getScore();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            for (LoadBalancingStrategy strategy : strategies) {
                loadBalancer.setStrategy(strategy);
                assertEquals(strategy, loadBalancer.getStrategy());
            }
    
            // Test channel selection with mock request when no channels available
            ServerMessageBlock2Request mockRequest = mock(ServerMessageBlock2Request.class);
            when(mockRequest.getTreeId()).thenReturn(123);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

     * selected in the static initializer of AbstractFuture. This is convenient and performant but
     * introduces some testing difficulties. This test exercises the fallback strategies.
     *
     * <p>To force selection of our fallback strategies, we load {@link AbstractFuture} (and all of
     * {@code com.google.common.util.concurrent}) in degenerate class loaders which make certain
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

         */
        public boolean isUsableForChannel() {
            return address != null && !address.isLoopbackAddress() && !address.isLinkLocalAddress();
        }
    
        /**
         * Get a score for interface selection (higher is better)
         *
         * @return interface score
         */
        public int getScore() {
            int score = linkSpeed; // Base score is link speed
    
            if (rssCapable)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

      fun recordedConnectionEventTypes(): List<String> = connectionListener.recordedEventTypes()
    
      companion object {
        /**
         * A network that resolves only one IP address per host. Use this when testing route selection
         * fallbacks to prevent the host machine's various IP addresses from interfering.
         */
        private val SINGLE_INET_ADDRESS_DNS =
          Dns { hostname ->
            val addresses = Dns.SYSTEM.lookup(hostname)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/Files.java

       *
       * <p>Files are mapped from offset 0 to its length.
       *
       * <p>This only works for files ≤ {@link Integer#MAX_VALUE} bytes.
       *
       * @param file the file to map
       * @return a read-only buffer reflecting {@code file}
       * @throws FileNotFoundException if the {@code file} does not exist
       * @throws IOException if an I/O error occurs
       * @see FileChannel#map(MapMode, long, long)
       * @since 2.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  7. schema/relationship.go

    package schema
    
    import (
    	"context"
    	"fmt"
    	"reflect"
    	"strings"
    	"sync"
    
    	"github.com/jinzhu/inflection"
    	"golang.org/x/text/cases"
    	"golang.org/x/text/language"
    
    	"gorm.io/gorm/clause"
    )
    
    // RelationshipType relationship type
    type RelationshipType string
    
    const (
    	HasOne    RelationshipType = "has_one"      // HasOneRel has one relationship
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 23.1K bytes
    - Viewed (1)
  8. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

          if (annotations == null) {
            annotations = new ArrayList<>();
            for (Annotation a : classOrMethod.getDeclaredAnnotations()) {
              /*
               * We avoid reflecting on NullMarked because its @Target(..., MODULE) causes problems
               * under JDK 8.
               */
              if (!(a instanceof NullMarked)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/Files.java

       *
       * <p>Files are mapped from offset 0 to its length.
       *
       * <p>This only works for files ≤ {@link Integer#MAX_VALUE} bytes.
       *
       * @param file the file to map
       * @return a read-only buffer reflecting {@code file}
       * @throws FileNotFoundException if the {@code file} does not exist
       * @throws IOException if an I/O error occurs
       * @see FileChannel#map(MapMode, long, long)
       * @since 2.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

          if (annotations == null) {
            annotations = new ArrayList<>();
            for (Annotation a : classOrMethod.getDeclaredAnnotations()) {
              /*
               * We avoid reflecting on NullMarked because its @Target(..., MODULE) causes problems
               * under JDK 8.
               */
              if (!(a instanceof NullMarked)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top