package com.anyun.im_lib;
|
|
import android.util.Log;
|
|
import com.anyun.im_lib.interf.IMSClientInteface;
|
|
import java.util.Timer;
|
import java.util.TimerTask;
|
|
/**
|
* MyApplication2
|
* Created by lzw on 2019/12/2. 15:09:39
|
* 邮箱:632393724@qq.com
|
* All Rights Saved! Chongqing AnYun Tech co. LTD
|
*/
|
public class MsgTimeoutTimer extends Timer {
|
private static final String TAG = "MsgTimeoutTimer";
|
private IMSClientInteface imsClient;
|
private Object message;//发送的消息
|
private int currentResendCount;//当前重发次数
|
private MsgTimeoutTask task;//消息发送超时任务
|
|
public MsgTimeoutTimer(IMSClientInteface imsClient) {
|
Log.i(TAG, "MsgTimeoutTimer: ");
|
this.imsClient = imsClient;
|
this.schedule(task,imsClient.getResendInterval(),imsClient.getResendInterval());
|
}
|
|
private class MsgTimeoutTask extends TimerTask{
|
|
@Override
|
public void run() {
|
|
}
|
}
|
}
|