mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 22:25:34 +00:00
45 lines
1.0 KiB
Java
45 lines
1.0 KiB
Java
package R;
|
|
|
|
import java.io.InputStream;
|
|
import java.net.URL;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
|
|
public class ThreadExtensionInRPackage extends Thread {
|
|
String a = "http://services.efianalytics.com/efiaServices/UserServices";
|
|
|
|
public ThreadExtensionInRPackage() {
|
|
super("MessageMonitor");
|
|
setDaemon(true);
|
|
}
|
|
|
|
public boolean a() {
|
|
try {
|
|
URL uRL = new URL(this.a);
|
|
InputStream inputStream = uRL.openStream();
|
|
inputStream.close();
|
|
return true;
|
|
} catch (Exception exception) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public void run() {
|
|
n n = new n();
|
|
while (true) {
|
|
if (n.b() && a())
|
|
n.a();
|
|
try {
|
|
Thread.sleep(60000L);
|
|
} catch (InterruptedException interruptedException) {
|
|
Logger.getLogger(b.class.getName()).log(Level.SEVERE, (String)null, interruptedException);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/R/b.class
|
|
* Java compiler version: 8 (52.0)
|
|
* JD-Core Version: 1.1.3
|
|
*/ |