Class TaskLoggingBuilder
java.lang.Object
org.tasktide.core.model.builders.ModelBuilder<TaskLogging>
org.tasktide.core.model.builders.TaskLoggingBuilder
Allow TaskLogging objects to be built where all fields are optional
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct TaskLogging object from provided fieldswithCpuDuration(long cpuDuration) Add CPU duration fieldwithEndTime(long endTime) Add end time fieldwithExitCode(int exitCode) Add Exit Code fieldAdd Id fieldwithProcessLog(ProcessLog procLog) Add ProcessLog fieldwithProcId(long procId) Add Id fieldwithStartTime(long startTime) Add start timewithThreadName(String threadName) Add thread name field
-
Constructor Details
-
TaskLoggingBuilder
public TaskLoggingBuilder()
-
-
Method Details
-
withId
Add Id field- Parameters:
id-- Returns:
TaskLoggingBuilder
-
withProcId
Add Id field- Parameters:
procId-- Returns:
TaskLoggingBuilder
-
withProcessLog
Add ProcessLog field- Parameters:
procLog-- Returns:
TaskLoggingBuilder
-
withStartTime
Add start time- Parameters:
startTime-- Returns:
TaskLoggingBuilder
-
withEndTime
Add end time field- Parameters:
endTime-- Returns:
TaskLoggingBuilder
-
withThreadName
Add thread name field- Parameters:
threadName-- Returns:
TaskLoggingBuilder
-
withCpuDuration
Add CPU duration field- Parameters:
cpuDuration-- Returns:
TaskLoggingBuilder
-
withExitCode
Add Exit Code field- Parameters:
exitCode-- Returns:
TaskLoggingBuilder
-
build
Construct TaskLogging object from provided fields- Specified by:
buildin classModelBuilder<TaskLogging>- Returns:
TaskLogging
-