_sub_java.mdx 390 字节
Newer Older
1
```java
D
dingbo 已提交
2
{{#include docs/examples/java/src/main/java/com/taos/example/SubscribeDemo.java}}
H
huolibo 已提交
3 4
{{#include docs/examples/java/src/main/java/com/taos/example/MetersDeserializer.java}}
{{#include docs/examples/java/src/main/java/com/taos/example/Meters.java}}
5 6 7 8 9
```
:::note
For now Java connector doesn't provide asynchronous subscription, but `TimerTask` can be used to achieve similar purpose.

:::