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()
void
cancel()
Marks the task being processed by this processor as cancelled.void
Dumps the stack of the current process.Task target stage of an async. pipelineGets the name of the taskboolean
isCalled()
boolean
boolean
isCancelled
(Object cancelRequestHandle) Checks if the task is cancelledboolean
Checks if the task that will be/being performed by this processor is a priority onevoid
registerCancelRequest
(Object cancelRequestHandle) Registers a cancel requestvoid
setFuture
(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:ITaskProcessor
Marks the task being processed by this processor as cancelled.- Specified by:
cancel
in interfaceITaskProcessor
-
getComputationTask
-
getException
-
isCalled
public boolean isCalled() -
isCancelled
public boolean isCancelled() -
isPriorityTask
public boolean isPriorityTask()Description copied from interface:ITaskProcessor
Checks if the task that will be/being performed by this processor is a priority one- Specified by:
isPriorityTask
in interfaceITaskProcessor
- Returns:
- True if the executed task is a priority task
-
getTaskName
Description copied from interface:ITaskProcessor
Gets the name of the task- Specified by:
getTaskName
in interfaceITaskProcessor
- Returns:
- The name of the task. May not be
null
-
isCancelled
Description copied from interface:ITaskProcessor
Checks if the task is cancelled- Specified by:
isCancelled
in 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:ITaskProcessor
Dumps the stack of the current process. Used only for tracing/debugging- Specified by:
dumpCurrentProcess
in interfaceITaskProcessor
-
registerCancelRequest
Description copied from interface:ITaskProcessor
Registers a cancel request- Specified by:
registerCancelRequest
in interfaceITaskProcessor
- Parameters:
cancelRequestHandle
- The handle of a cancel request. May not benull
-
setFuture
Description copied from interface:ITaskProcessor
Sets the future of a launched task- Specified by:
setFuture
in interfaceITaskProcessor
- Parameters:
future
- The task to set. May not benull
-
getTargetStage
Description copied from interface:ITaskProcessor
Task target stage of an async. pipeline- Specified by:
getTargetStage
in interfaceITaskProcessor
- Returns:
- The target stage of a task being procesed within this processor. May not be
null
-