public class Noop extends Object implements ThreadWatchdog
| 构造器和说明 |
|---|
Noop() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
maxExecutionTimeInMillis() |
void |
register()
Registers the current thread and interrupts the current thread
if the takes too long for this thread to invoke
ThreadWatchdog.unregister(). |
void |
unregister()
Unregisters the current thread and prevents it from being interrupted.
|
public void register()
ThreadWatchdogThreadWatchdog.unregister().register 在接口中 ThreadWatchdogpublic long maxExecutionTimeInMillis()
maxExecutionTimeInMillis 在接口中 ThreadWatchdogThreadWatchdog.unregister()
after ThreadWatchdog.register() has been invoked before this ThreadWatchDog starts to interrupting that thread.public void unregister()
ThreadWatchdogunregister 在接口中 ThreadWatchdogCopyright © 2021. All rights reserved.