Class TestTaskProcessor
java.lang.Object
com._1c.g5.v8.internal.derived.scheduler.TestTaskProcessor
- All Implemented Interfaces:
ITaskProcessor,Callable<Void>
Test task callable to test the pool functions
-
Constructor Summary
ConstructorsConstructorDescriptionTestTaskProcessor(DerivedDataComputationTask computationTask) TestTaskProcessor(DerivedDataComputationTask computationTask, long executionTime) -
Method Summary
Modifier and TypeMethodDescriptioncall()voidcancel()Marks the task being processed by this processor as cancelled.voidDumps the stack of the current process.Task target stage of an async. pipelineGets the name of the taskbooleanisCalled()booleanbooleanisCancelled(Object cancelRequestHandle) Checks if the task is cancelledbooleanChecks if the task that will be/being performed by this processor is a priority onevoidregisterCancelRequest(Object cancelRequestHandle) Registers a cancel requestvoidsetFuture(CompletableFuture<Void> future) Sets the future of a launched task
-
Constructor Details
-
TestTaskProcessor
-
TestTaskProcessor
-
-
Method Details
-
call
-
cancel
public void cancel()Description copied from interface:ITaskProcessorMarks the task being processed by this processor as cancelled.- Specified by:
cancelin interfaceITaskProcessor
-
getComputationTask
-
getException
-
isCalled
public boolean isCalled() -
isCancelled
public boolean isCancelled() -
isPriorityTask
public boolean isPriorityTask()Description copied from interface:ITaskProcessorChecks if the task that will be/being performed by this processor is a priority one- Specified by:
isPriorityTaskin interfaceITaskProcessor- Returns:
- True if the executed task is a priority task
-
getTaskName
Description copied from interface:ITaskProcessorGets the name of the task- Specified by:
getTaskNamein interfaceITaskProcessor- Returns:
- The name of the task. May not be
null
-
isCancelled
Description copied from interface:ITaskProcessorChecks if the task is cancelled- Specified by:
isCancelledin interfaceITaskProcessor- Parameters:
cancelRequestHandle- The handle of the cancel request. May not benull- Returns:
- True if the task is cancelled
-
dumpCurrentProcess
public void dumpCurrentProcess()Description copied from interface:ITaskProcessorDumps the stack of the current process. Used only for tracing/debugging- Specified by:
dumpCurrentProcessin interfaceITaskProcessor
-
registerCancelRequest
Description copied from interface:ITaskProcessorRegisters a cancel request- Specified by:
registerCancelRequestin interfaceITaskProcessor- Parameters:
cancelRequestHandle- The handle of a cancel request. May not benull
-
setFuture
Description copied from interface:ITaskProcessorSets the future of a launched task- Specified by:
setFuturein interfaceITaskProcessor- Parameters:
future- The task to set. May not benull
-
getTargetStage
Description copied from interface:ITaskProcessorTask target stage of an async. pipeline- Specified by:
getTargetStagein interfaceITaskProcessor- Returns:
- The target stage of a task being procesed within this processor. May not be
null
-