periodicaccountrefresh.java
来自「是一款国外的网络游戏平台的源码*不是类似浩方那种虚拟局域网技术」· Java 代码 · 共 40 行
JAVA
40 行
/*
* Created on Jan 7, 2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.GTADS.server;
import org.GTADS.debug.ServerLogger;
import org.GTADS.usermanager.AuthenticationManager;
/**
* @author Administrator
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class PeriodicAccountRefresh extends Thread {
PeriodicAccountRefresh(){
this.setName(this.getClass().getName());
this.setPriority(10);
start();
}
public void run(){
try {
while (true) {
Thread.sleep(ServerConfig.getInstance().accountRefreshCacheInterval() * 1000);
ServerLogger.sendConsoleDebugMessage("Reading in password file " +
ServerConfig.getInstance().getPasswdFileName(),
this.getClass(), 5);
AuthenticationManager.readInPasswords();
}
} catch (InterruptedException ie){
return;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?