模拟重发

back_recharge
lvxinran 2021-01-14 15:45:30 +08:00
parent 51042972c0
commit 98fe5af92d
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,7 @@ import java.lang.reflect.Type;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
/**
* Description: session
@ -138,6 +139,11 @@ public class SessionManager implements INetSession<ISession>, INetReceived<ISess
private void ackIndication(ISession iSession, int ackId) {
LOGGER.info("the uid={},the ackId={}", iSession.getUid(), ackId);
iSession.clearIndication(ackId);
try {
TimeUnit.SECONDS.sleep(3600);
} catch (InterruptedException e) {
e.printStackTrace();
}
MessageUtil.sendAck(iSession, ackId);
}