com.posco.reuse.kafka.clients
Class PosKafkaProducer
java.lang.Object
com.posco.reuse.kafka.clients.PosKafkaProducer
- All Implemented Interfaces:
- InitializingBean
public class PosKafkaProducer
- extends Object
- implements InitializingBean
Kafka에 데이타를 송신해 주는 기능을 제공하는 클래스
Bean Property
- propertisMap : (필수) KafkaProducer에 필요한 property 값을 Map 형식으로 설정
applicationContext.xml 사용 예
|
Field Summary |
protected org.slf4j.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.slf4j.Logger logger
PosKafkaProducer
public PosKafkaProducer()
setPropertiesMap
public void setPropertiesMap(Map<String,String> propertiesMap)
sendMessage
public void sendMessage(String topic,
byte[] message)
sendMessage
public void sendMessage(String topic,
String id,
byte[] message)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
Copyright © 2013–2016 POSCO ICT. All rights reserved.