public class KafkaBatchContextImpl extends Object implements KafkaBatchContext
| 构造器和说明 |
|---|
KafkaBatchContextImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addContext(KafkaContext context)
新增消费上下文
|
Object |
getAttribute(String key)
获取一个属性
|
Map<String,Object> |
getAttributes()
获取全部属性
|
List<KafkaContext> |
getContexts()
获取全部消费上下文
|
void |
setAttribute(String key,
Object value)
新增一个属性
|
public List<KafkaContext> getContexts()
KafkaBatchContextgetContexts 在接口中 KafkaBatchContextpublic void addContext(KafkaContext context)
KafkaBatchContextaddContext 在接口中 KafkaBatchContextcontext - 消费上下文public Map<String,Object> getAttributes()
KafkaBatchContextgetAttributes 在接口中 KafkaBatchContextpublic Object getAttribute(String key)
KafkaBatchContextgetAttribute 在接口中 KafkaBatchContextkey - 属性名public void setAttribute(String key, Object value)
KafkaBatchContextsetAttribute 在接口中 KafkaBatchContextkey - 属性名value - 属性值Copyright © 2023. All rights reserved.