@InterfaceAudience.Private public final class ServerTaskBuilder extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
ServerTaskBuilder.ServerTaskImpl |
Modifier and Type | Field and Description |
---|---|
private long |
completionTime |
private String |
description |
private long |
startTime |
private ServerTask.State |
state |
private String |
status |
Modifier | Constructor and Description |
---|---|
private |
ServerTaskBuilder() |
Modifier and Type | Method and Description |
---|---|
ServerTask |
build() |
static ServerTaskBuilder |
newBuilder() |
ServerTaskBuilder |
setCompletionTime(long completionTime) |
ServerTaskBuilder |
setDescription(String description) |
ServerTaskBuilder |
setStartTime(long startTime) |
ServerTaskBuilder |
setState(ServerTask.State state) |
ServerTaskBuilder |
setStatus(String status) |
private String description
private ServerTask.State state
private long startTime
private long completionTime
private ServerTaskBuilder()
public static ServerTaskBuilder newBuilder()
public ServerTaskBuilder setDescription(String description)
public ServerTaskBuilder setStatus(String status)
public ServerTaskBuilder setState(ServerTask.State state)
public ServerTaskBuilder setStartTime(long startTime)
public ServerTaskBuilder setCompletionTime(long completionTime)
public ServerTask build()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.