Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for queue_size (1.46 sec)

  1. internal/logger/config.go

    		queueSizeCfgVal := getCfgVal(EnvKafkaQueueSize, k, kv.Get(KafkaQueueSize))
    		queueSize, err := strconv.Atoi(queueSizeCfgVal)
    		if err != nil {
    			return cfg, err
    		}
    		if queueSize <= 0 {
    			return cfg, errInvalidQueueSize
    		}
    		kafkaArgs.QueueSize = queueSize
    
    		cfg.AuditKafka[k] = kafkaArgs
    	}
    
    	return cfg, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. internal/logger/target/kafka/kafka.go

    	SASL struct {
    		Enable    bool   `json:"enable"`
    		User      string `json:"username"`
    		Password  string `json:"password"`
    		Mechanism string `json:"mechanism"`
    	} `json:"sasl"`
    	// Queue store
    	QueueSize int    `json:"queueSize"`
    	QueueDir  string `json:"queueDir"`
    
    	// Custom logger
    	LogOnce func(ctx context.Context, err error, id string, errKind ...interface{}) `json:"-"`
    }
    
    // Target - Kafka target.
    type Target struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

        }
    
        this.key = ByteArray(16).apply { random.nextBytes(this) }.toByteString().base64()
      }
    
      override fun request(): Request = originalRequest
    
      @Synchronized override fun queueSize(): Long = queueSize
    
      override fun cancel() {
        call!!.cancel()
      }
    
      fun connect(client: OkHttpClient) {
        if (originalRequest.header("Sec-WebSocket-Extensions") != null) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. internal/logger/target/http/http.go

    	AuthToken  string            `json:"authToken"`
    	ClientCert string            `json:"clientCert"`
    	ClientKey  string            `json:"clientKey"`
    	BatchSize  int               `json:"batchSize"`
    	QueueSize  int               `json:"queueSize"`
    	QueueDir   string            `json:"queueDir"`
    	Proxy      string            `json:"string"`
    	Transport  http.RoundTripper `json:"-"`
    
    	// Custom logger
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        return capAtMaximumSize(newCapacity, maximumSize);
      }
    
      /** There's no reason for the queueSize to ever be more than maxSize + 1 */
      private static int capAtMaximumSize(int queueSize, int maximumSize) {
        return Math.min(queueSize - 1, maximumSize) + 1; // don't overflow
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        return capAtMaximumSize(newCapacity, maximumSize);
      }
    
      /** There's no reason for the queueSize to ever be more than maxSize + 1 */
      private static int capAtMaximumSize(int queueSize, int maximumSize) {
        return Math.min(queueSize - 1, maximumSize) + 1; // don't overflow
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        var messageCount: Long = 0
        while (true) {
          val success = webSocket.send(message)
          if (!success) break
          messageCount++
          val queueSize = webSocket.queueSize()
          assertThat(queueSize).isBetween(0L, messageCount * message.size)
          // Expect to fail before enqueueing 32 MiB.
          assertThat(messageCount).isLessThan(32L)
        }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. internal/grid/connection.go

    				continue
    			}
    		}
    		if len(queue) < maxMergeMessages && queueSize+len(toSend) < writeBufferSize-1024 && len(c.outQueue) > 0 {
    			queue = append(queue, toSend)
    			queueSize += len(toSend)
    			continue
    		}
    		c.outMessages.Add(int64(len(queue) + 1))
    		if c.outgoingBytes != nil {
    			c.outgoingBytes(int64(len(toSend) + queueSize))
    		}
    
    		c.connChange.L.Lock()
    		for {
    			state := c.State()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun webSocket() {
        val webSocket =
          object : WebSocket {
            override fun request(): Request = TODO()
    
            override fun queueSize(): Long = TODO()
    
            override fun send(text: String): Boolean = TODO()
    
            override fun send(bytes: ByteString): Boolean = TODO()
    
            override fun close(
              code: Int,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top