This commit is contained in:
lxy 2021-02-03 16:45:42 +08:00
parent 71a2043da8
commit d711bfa9cf
4 changed files with 5 additions and 7 deletions

View File

@ -64,10 +64,10 @@ public abstract class AbstractConsumer implements IConsumer {
for (String x : topic.split(",")) {
subscribe(x, typeToken, consumer);
}
} else {
eventMap.put(topic, EventType.of(topic, typeToken, consumer));
subscribe(topic);
}
eventMap.put(topic, EventType.of(topic, typeToken, consumer));
subscribe(topic);
}
}

View File

@ -30,8 +30,6 @@ public abstract class KafakConsumer extends AbstractConsumer implements IConsume
@Resource(name = "APP_HOME")
protected File APP_HOME;
public abstract String getGroupid();
private final LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<>();
@Override

View File

@ -25,7 +25,7 @@ import java.util.logging.Logger;
public abstract class ZHubClient extends AbstractConsumer implements IConsumer, IProducer, Service {
Logger logger = Logger.getLogger(ZHubClient.class.getSimpleName());
public Logger logger = Logger.getLogger(ZHubClient.class.getSimpleName());
@Resource(name = "property.zhub.host")
private String host = "127.0.0.1";

View File

@ -9,7 +9,7 @@ public class MyConsumer extends ZHubClient {
}
@Override
public boolean preInit() {
protected boolean preInit() {
return true;
}
}