接口 BatchMessageContainer
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
clear()
Clear the message batch container.void
discard(java.lang.Exception ex)
Release the payload and clear the container.long
getCurrentBatchSize()
Get current message batch size of the message batch container in bytes.int
getNumMessagesInBatch()
Get count of messages in the message batch container.boolean
isEmpty()
Check the message batch container is empty.boolean
isMultiBatches()
Return the batch container batch message in multiple batches.
-
-
-
方法详细资料
-
clear
void clear()
Clear the message batch container.
-
isEmpty
boolean isEmpty()
Check the message batch container is empty.- 返回:
- return true if empty, otherwise return false.
-
getNumMessagesInBatch
int getNumMessagesInBatch()
Get count of messages in the message batch container.- 返回:
- messages count
-
getCurrentBatchSize
long getCurrentBatchSize()
Get current message batch size of the message batch container in bytes.- 返回:
- message batch size in bytes
-
discard
void discard(java.lang.Exception ex)
Release the payload and clear the container.- 参数:
ex
- cause
-
isMultiBatches
boolean isMultiBatches()
Return the batch container batch message in multiple batches.- 返回:
-
-