public static class HostConfig.RestartPolicy extends Object
| Modifier and Type | Field and Description |
|---|---|
private Integer |
maxRetryCount |
private String |
name |
| Modifier | Constructor and Description |
|---|---|
private |
RestartPolicy() |
private |
RestartPolicy(String name,
Integer maxRetryCount) |
| Modifier and Type | Method and Description |
|---|---|
static HostConfig.RestartPolicy |
always() |
boolean |
equals(Object o) |
int |
hashCode() |
Integer |
maxRetryCount() |
String |
name() |
static HostConfig.RestartPolicy |
onFailure(Integer maxRetryCount) |
String |
toString() |
static HostConfig.RestartPolicy |
unlessStopped() |
public static HostConfig.RestartPolicy always()
public static HostConfig.RestartPolicy unlessStopped()
public static HostConfig.RestartPolicy onFailure(Integer maxRetryCount)
public String name()
public Integer maxRetryCount()
Copyright © 2016. All rights reserved.