public interface ThreadWatchdog
register(), but take too long to invoke the unregister() method
will be interrupted.| 限定符和类型 | 方法和说明 |
|---|---|
long |
maxExecutionTimeInMillis() |
void |
register()
Registers the current thread and interrupts the current thread
if the takes too long for this thread to invoke
unregister(). |
void |
unregister()
Unregisters the current thread and prevents it from being interrupted.
|
void register()
unregister().long maxExecutionTimeInMillis()
unregister()
after register() has been invoked before this ThreadWatchDog starts to interrupting that thread.void unregister()
Copyright © 2021. All rights reserved.