删除:producer 的 send 方法

This commit is contained in:
lxy
2021-01-23 19:01:50 +08:00
parent 91e4e48aa2
commit f6c56c62df
5 changed files with 2 additions and 33 deletions

View File

@@ -39,22 +39,6 @@ public class RedisProducer implements IProducer, Service {
}
}
@Deprecated
@Override
public <T extends Event> void send(T t) {
try {
String v = JsonConvert.root().convertTo(t.value);
if (v.startsWith("\"") && v.endsWith("\"")) {
v = v.substring(1, v.length() - 1);
}
osw.write("PUBLISH " + t.topic + " '" + v + "' \r\n");
osw.flush();
} catch (IOException e) {
logger.log(Level.WARNING, "", e);
}
}
@Override
public <V> void publish(String topic, V v) {
try {