Class ThreadInterrupt
java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.async.ThreadInterrupt
-
Field Summary
Fields inherited from class ortus.boxlang.runtime.bifs.BIF
__functionName, __isMemberExecution, asyncService, cacheService, componentService, declaredArguments, functionService, interceptorService, logger, moduleService, runtime, schedulerService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_invoke
(IBoxContext context, ArgumentsScope arguments) Interrupt the specific thread by name or all threads managed by the thread manager.Methods inherited from class ortus.boxlang.runtime.bifs.BIF
announce, getDeclaredArguments, invoke
-
Constructor Details
-
ThreadInterrupt
public ThreadInterrupt()Constructor
-
-
Method Details
-
_invoke
Interrupt the specific thread by name or all threads managed by the thread manager.Example:
ThreadInterrupt( "myThread" );
This will interrupt the thread with the name "myThread".
Example:
ThreadInterrupt();
This will interrupt all threads managed by the thread manager.
- Specified by:
_invoke
in classBIF
- Parameters:
context
- The context in which the BIF is being invoked.arguments
- Argument scope for the BIF.- Returns:
- The result of the invocation
- Throws:
BoxRuntimeException
- If the thread is not found.
-