```java {{#include docs-examples/java/src/main/java/com/taos/example/SubscribeDemo.java}} ``` :::note
For now Java connector doesn't provide asynchronous subscription, but `TimerTask` can be used to achieve similar purpose.
:::