public class ServiceRestartPolicy extends DockerObject implements Serializable
RemoteApiVersion#VERSION_1_24| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
ServiceRestartPolicy() |
| Modifier and Type | Method and Description |
|---|---|
ServiceRestartCondition |
getCondition() |
Long |
getDelay() |
Long |
getMaxAttempts() |
Long |
getWindow() |
ServiceRestartPolicy |
withCondition(ServiceRestartCondition condition) |
ServiceRestartPolicy |
withDelay(Long delay) |
ServiceRestartPolicy |
withMaxAttempts(Long maxAttempts) |
ServiceRestartPolicy |
withWindow(Long window) |
getRawValuespublic static final long serialVersionUID
@CheckForNull public ServiceRestartCondition getCondition()
conditionpublic ServiceRestartPolicy withCondition(ServiceRestartCondition condition)
condition@CheckForNull public Long getDelay()
delaypublic ServiceRestartPolicy withDelay(Long delay)
delay@CheckForNull public Long getMaxAttempts()
maxAttemptspublic ServiceRestartPolicy withMaxAttempts(Long maxAttempts)
maxAttempts@CheckForNull public Long getWindow()
windowpublic ServiceRestartPolicy withWindow(Long window)
windowCopyright © 2025. All rights reserved.