Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for queueSize (0.09 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 20 16:02:50 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. internal/logger/help.go

    		},
    		config.HelpKV{
    			Key:         BatchSize,
    			Description: "Number of events per HTTP send to webhook target",
    			Optional:    true,
    			Type:        "number",
    		},
    		config.HelpKV{
    			Key:         QueueSize,
    			Description: "configure channel queue size for webhook targets",
    			Optional:    true,
    			Type:        "number",
    		},
    		config.HelpKV{
    			Key:         QueueDir,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/SimplexTransferListener.java

         */
        public SimplexTransferListener(
                TransferListener delegate, int queueSize, int batchMaxSize, boolean blockOnLastEvent) {
            this.delegate = requireNonNull(delegate);
            if (queueSize < 1 || batchMaxSize < 1) {
                throw new IllegalArgumentException("Queue and batch sizes must be greater than 1");
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K 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"`
    	MaxRetry    int               `json:"maxRetry"`
    	RetryIntvl  time.Duration     `json:"retryInterval"`
    	Proxy       string            `json:"string"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  5. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. 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 min(queueSize - 1, maximumSize) + 1; // don't overflow
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. 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 min(queueSize - 1, maximumSize) + 1; // don't overflow
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  8. internal/grid/connection.go

    			if len(toSend) == 0 {
    				continue
    			}
    		}
    		if len(queue) < maxMergeMessages && queueSize+len(toSend) < writeBufferSize-1024 {
    			if len(c.outQueue) == 0 {
    				// Yield to allow more messages to fill.
    				runtime.Gosched()
    			}
    			if len(c.outQueue) > 0 {
    				queue = append(queue, toSend)
    				queueSize += len(toSend)
    				continue
    			}
    		}
    		c.outMessages.Add(int64(len(queue) + 1))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top