psocketconnection$1$heartbeatthread.java

来自「华为java接口反编译结果!其中包含其所有接口实现过程」· Java 代码 · 共 41 行

JAVA
41 行
字号
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   PSocketConnection.java

package com.huawei.insa2.comm;

import com.huawei.insa2.util.WatchThread;
import java.io.IOException;

// Referenced classes of package com.huawei.insa2.comm:
//            PSocketConnection

class HeartbeatThread extends WatchThread
{

    public void task()
    {
        try
        {
            Thread.sleep(heartbeatInterval);
        }
        catch(InterruptedException interruptedexception) { }
        if(PSocketConnection.access$0(PSocketConnection.this) == null && out != null)
            try
            {
                heartbeat();
            }
            catch(IOException ex)
            {
                setError(String.valueOf(PSocketConnection.SEND_ERROR) + String.valueOf(explain(ex)));
            }
    }

    public HeartbeatThread()
    {
        super(String.valueOf(String.valueOf(name)).concat("-heartbeat"));
        setState(PSocketConnection.HEARTBEATING);
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?