.
This commit is contained in:
parent
7acacc2ce3
commit
c4639fcabf
@ -64,10 +64,10 @@ public abstract class AbstractConsumer implements IConsumer {
|
|||||||
for (String x : topic.split(",")) {
|
for (String x : topic.split(",")) {
|
||||||
subscribe(x, typeToken, consumer);
|
subscribe(x, typeToken, consumer);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
|
||||||
eventMap.put(topic, EventType.of(topic, typeToken, consumer));
|
eventMap.put(topic, EventType.of(topic, typeToken, consumer));
|
||||||
subscribe(topic);
|
subscribe(topic);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,6 @@ public abstract class KafakConsumer extends AbstractConsumer implements IConsume
|
|||||||
@Resource(name = "APP_HOME")
|
@Resource(name = "APP_HOME")
|
||||||
protected File APP_HOME;
|
protected File APP_HOME;
|
||||||
|
|
||||||
public abstract String getGroupid();
|
|
||||||
|
|
||||||
private final LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<>();
|
private final LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -25,7 +25,7 @@ import java.util.logging.Logger;
|
|||||||
|
|
||||||
public abstract class ZHubClient extends AbstractConsumer implements IConsumer, IProducer, Service {
|
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")
|
@Resource(name = "property.zhub.host")
|
||||||
private String host = "127.0.0.1";
|
private String host = "127.0.0.1";
|
||||||
|
@ -9,7 +9,7 @@ public class MyConsumer extends ZHubClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean preInit() {
|
protected boolean preInit() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user