| | |
| | | package cn.sinata.rxnetty; |
| | | |
| | | import static cn.sinata.rxnetty.LogHelper.logRecord; |
| | | |
| | | import android.app.job.JobScheduler; |
| | | import android.content.Context; |
| | | import android.content.Intent; |
| | |
| | | * @param msg |
| | | */ |
| | | public void sendMessage(String msg) { |
| | | logRecord("sendMessage sendListener is null " + (sendListener == null) + " msg = " + msg); |
| | | if (sendListener != null) { |
| | | sendListener.onSend(msg); |
| | | } |
| | |
| | | * 检测netty连接状况 |
| | | */ |
| | | public boolean checkNettyState() { |
| | | logRecord("checkNettyState onCheckListener is null " + (onCheckListener == null)); |
| | | if (onCheckListener != null) { |
| | | return onCheckListener.doCheck(); |
| | | } else { |