Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for newConnections (0.22 sec)

  1. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

       *
       * @throws IllegalStateException if {@code node} is already present
       */
      @CanIgnoreReturnValue
      private GraphConnections<N, V> addNodeInternal(N node) {
        GraphConnections<N, V> connections = newConnections();
        checkState(nodeConnections.put(node, connections) == null);
        return connections;
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public V putEdgeValue(N nodeU, N nodeV, V value) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Oct 21 01:50:30 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/StandardMutableValueGraph.java

       *
       * @throws IllegalStateException if {@code node} is already present
       */
      @CanIgnoreReturnValue
      private GraphConnections<N, V> addNodeInternal(N node) {
        GraphConnections<N, V> connections = newConnections();
        checkState(nodeConnections.put(node, connections) == null);
        return connections;
      }
    
      @Override
      @CanIgnoreReturnValue
      @CheckForNull
      public V putEdgeValue(N nodeU, N nodeV, V value) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Oct 21 01:50:30 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        assertThat(c1.socket().isClosed).isFalse()
      }
    
      @Test fun cleanupPrioritizesEarliestEviction() {
        val pool = factory.newConnectionPool()
        val c1 = factory.newConnection(pool, routeA1, 75L)
        val c2 = factory.newConnection(pool, routeB1, 50L)
    
        // Running at time 75, the pool returns that nothing can be evicted until time 150.
        assertThat(pool.closeConnections(75L)).isEqualTo(75L)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 24 04:40:49 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. pkg/test/loadbalancersim/mesh/mesh.go

    		s:        s,
    		networkQ: timer.NewQueue(),
    	}
    }
    
    func (m *Instance) Nodes() Nodes {
    	return m.nodes
    }
    
    func (m *Instance) Clients() []*Client {
    	return m.clients
    }
    
    func (m *Instance) NewConnection(src *Client, dest *Node) network.Connection {
    	// Lookup the route between the source and destination
    	networkLatency := m.s.NetworkLatencies[RouteKey{
    		Src:  src.Locality(),
    		Dest: dest.Locality(),
    	}]
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 27 20:55:37 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. pkg/test/loadbalancersim/loadbalancer/weight.go

    func EquallyWeightedConnectionFactory() WeightedConnectionFactory {
    	return func(src *mesh2.Client, dest *mesh2.Node) *WeightedConnection {
    		return &WeightedConnection{
    			Connection: src.Mesh().NewConnection(src, dest),
    			Weight:     1,
    		}
    	}
    }
    
    func PriorityWeightedConnectionFactory(selectPriority PrioritySelector, priorityWeightMap map[uint32]uint32) WeightedConnectionFactory {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. pkg/test/loadbalancersim/network/connection.go

    )
    
    type Connection interface {
    	Name() string
    	Request(onDone func())
    	TotalRequests() uint64
    	ActiveRequests() uint64
    	Latency() *timeseries.Instance
    }
    
    func NewConnection(name string, request func(onDone func())) Connection {
    	return &connection{
    		request: request,
    		helper:  NewConnectionHelper(name),
    	}
    }
    
    type connection struct {
    	request func(onDone func())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/httpstream/httpstream.go

    // connection by calling UpgradeRoundTripper.Connection().
    type UpgradeRoundTripper interface {
    	http.RoundTripper
    	// NewConnection validates the response and creates a new Connection.
    	NewConnection(resp *http.Response) (Connection, error)
    }
    
    // ResponseUpgrader knows how to upgrade HTTP requests and responses to
    // add streaming support to them.
    type ResponseUpgrader interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go

    			return
    		}
    		defer srvConn.Close()
    
    		spdyConn, err := spdystream.NewConnection(srvConn, true)
    		if err != nil {
    			srvErr <- fmt.Errorf("server: error creating spdy connection: %v", err)
    			return
    		}
    
    		var pingsSent int64
    		srvSPDYConn := newConnection(
    			spdyConn,
    			func(stream httpstream.Stream, replySent <-chan struct{}) error {
    				// Echo all the incoming data.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 01 11:58:57 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. pilot/pkg/xds/pushqueue_test.go

    		}
    	case <-time.After(time.Millisecond * 500):
    		t.Fatalf("Timed out")
    	}
    }
    
    func TestProxyQueue(t *testing.T) {
    	proxies := make([]*Connection, 0, 100)
    	for p := 0; p < 100; p++ {
    		conn := newConnection("", nil)
    		conn.SetID(fmt.Sprintf("proxy-%d", p))
    		proxies = append(proxies, conn)
    	}
    
    	t.Run("simple add and remove", func(t *testing.T) {
    		t.Parallel()
    		p := NewPushQueue()
    		defer p.ShutDown()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go

    	if err != nil {
    		conn.Close()
    		return nil, err
    	}
    
    	s.conn = conn
    
    	return resp, nil
    }
    
    // NewConnection validates the upgrade response, creating and returning a new
    // httpstream.Connection if there were no errors.
    func (s *SpdyRoundTripper) NewConnection(resp *http.Response) (httpstream.Connection, error) {
    	connectionHeader := strings.ToLower(resp.Header.Get(httpstream.HeaderConnection))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 12.7K bytes
    - Viewed (0)
Back to top