File tree Expand file tree Collapse file tree
kafkaplugin/src/main/java/org/tron/eventplugin
mongodbplugin/src/main/java/org/tron/eventplugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .tron .eventplugin ;
22
33import com .alibaba .fastjson .JSONObject ;
4- import java .io .Closeable ;
54import java .text .SimpleDateFormat ;
65import java .util .Date ;
76import java .util .HashMap ;
2019import org .apache .kafka .clients .producer .RecordMetadata ;
2120
2221@ Slf4j (topic = "event" )
23- public class KafkaSenderImpl implements Closeable {
22+ public class KafkaSenderImpl implements AutoCloseable {
2423
2524 private static KafkaSenderImpl instance = null ;
2625
Original file line number Diff line number Diff line change 22
33import com .alibaba .fastjson .JSON ;
44import com .alibaba .fastjson .JSONObject ;
5- import java .io .Closeable ;
65import java .io .InputStream ;
76import java .util .HashMap ;
87import java .util .Map ;
2120import org .tron .mongodb .MongoTemplate ;
2221
2322@ Slf4j (topic = "event" )
24- public class MongodbSenderImpl implements Closeable {
23+ public class MongodbSenderImpl implements AutoCloseable {
2524
2625 private static MongodbSenderImpl instance = null ;
2726 @ Getter
You can’t perform that action at this time.
0 commit comments