クラス SimpleBatchingStrategy

java.lang.ObjectSE
org.springframework.amqp.rabbit.batch.SimpleBatchingStrategy
実装されているすべてのインターフェース:
BatchingStrategy

public class SimpleBatchingStrategy extends ObjectSE implements BatchingStrategy
A simple batching strategy that supports only one exchange/routingKey; includes a batch size, a batched message size limit and a timeout. The message properties from the first message in the batch are used in the batch message. Each message is preceded by a 4-byte length field.
導入:
1.4.1
作成者:
Gary Russell, Ngoc Nhan, Artem Bilan
  • コンストラクターの詳細

    • SimpleBatchingStrategy

      public SimpleBatchingStrategy(int batchSize, int bufferLimit, long timeout)
      パラメーター:
      batchSize - バッチサイズ。
      bufferLimit - 最大バッファサイズ。短いバッチをトリガーする可能性があります。単一のメッセージには適用されません。
      timeout - バッチタイムアウト。
  • メソッドの詳細