waitmsg.java

来自「MSN聊天机器人,可以自由聊天对话,可以做很多使用的应用」· Java 代码 · 共 39 行

JAVA
39
字号
// 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:   WaitMsg.java

package com.barryliu.ia;


class WaitMsg extends Thread
{

    public static boolean isStop = false;
    private long timeOut;

    public WaitMsg()
    {
        timeOut = 4000L;
        isStop = false;
    }

    public void run()
    {
        for(long l = System.currentTimeMillis(); !isStop && System.currentTimeMillis() - l < timeOut;)
            try
            {
                WaitMsg waitmsg = this;
                sleep(100L);
            }
            catch(Exception exception) { }

    }

    public static void stopWait()
    {
        isStop = true;
    }

}

⌨️ 快捷键说明

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