|
|
|
@ -14,14 +14,14 @@ import java.util.concurrent.TimeoutException;
|
|
|
|
|
* @since 11.0 |
|
|
|
|
* Created on 2024/1/8 |
|
|
|
|
*/ |
|
|
|
|
public abstract class CheckLockWorker extends SwingWorker<CheckLockResult, Void> { |
|
|
|
|
public abstract class BaseCheckLockWorker extends SwingWorker<CheckLockResult, Void> { |
|
|
|
|
|
|
|
|
|
private static final int TIME_OUT = 50; |
|
|
|
|
private boolean slowly = false; |
|
|
|
|
private final Callable<CheckLockResult> doInBackground; |
|
|
|
|
private CheckLockResult result; |
|
|
|
|
|
|
|
|
|
public CheckLockWorker(Callable<CheckLockResult> doInBackground) { |
|
|
|
|
public BaseCheckLockWorker(Callable<CheckLockResult> doInBackground) { |
|
|
|
|
this.doInBackground = doInBackground; |
|
|
|
|
} |
|
|
|
|
@Override |