asa

package com.jleo;

public class Authenicator implements Runnable {
	public LoginAction loginAction;
	
	@Override
	public void run() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		loginAction.onAuthenicateSuccess();
	}

	public Authenicator(LoginAction loginAction) {
		super();
		this.loginAction = loginAction;
	}

}

你可能感兴趣的:(java,thread)