Package org.infinispan.tasks.impl
Class TaskExecutionImpl
java.lang.Object
org.infinispan.tasks.impl.TaskExecutionImpl
- All Implemented Interfaces:
TaskExecution
@SerializeWith(TaskExecutionImplExternalizer.class)
public class TaskExecutionImpl
extends Object
implements TaskExecution
TaskExecutionImpl. A concrete representation of a
TaskExecution- Since:
- 8.1
- Author:
- Tristan Tarrant
-
Constructor Summary
ConstructorsConstructorDescriptionTaskExecutionImpl(String name, String where, Optional<String> who, org.infinispan.tasks.TaskContext context) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the taskgetStart()Returns the time when the task was startedgetUUID()getWhat()An optional context to which the task was applied.getWhere()The node/address where the task was initiatedgetWho()An optional name of the principal who has executed this task.void
-
Constructor Details
-
TaskExecutionImpl
-
-
Method Details
-
getUUID
-
getName
Description copied from interface:TaskExecutionReturns the name of the task- Specified by:
getNamein interfaceTaskExecution
-
getStart
Description copied from interface:TaskExecutionReturns the time when the task was started- Specified by:
getStartin interfaceTaskExecution
-
getWhat
Description copied from interface:TaskExecutionAn optional context to which the task was applied. Usually the name of a cache- Specified by:
getWhatin interfaceTaskExecution
-
getWhere
Description copied from interface:TaskExecutionThe node/address where the task was initiated- Specified by:
getWherein interfaceTaskExecution
-
getWho
Description copied from interface:TaskExecutionAn optional name of the principal who has executed this task. If the task was triggered internally, this method will return an emptyOptional- Specified by:
getWhoin interfaceTaskExecution
-
setStart
-