public class ServiceRestartPolicy extends Object 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) |
public static final long serialVersionUID
@CheckForNull public ServiceRestartCondition getCondition()
condition
public ServiceRestartPolicy withCondition(ServiceRestartCondition condition)
condition
@CheckForNull public Long getDelay()
delay
public ServiceRestartPolicy withDelay(Long delay)
delay
@CheckForNull public Long getMaxAttempts()
maxAttempts
public ServiceRestartPolicy withMaxAttempts(Long maxAttempts)
maxAttempts
@CheckForNull public Long getWindow()
window
public ServiceRestartPolicy withWindow(Long window)
window
Copyright © 2021. All rights reserved.