Class ServiceRestartPolicy
Specifies the restart policy for service containers.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceRestartPolicy
Properties
Condition
Specifies the condition under which a service container should be restarted.
Declaration
public ServiceRestartCondition Condition { get; set; }
Property Value
Type | Description |
---|---|
ServiceRestartCondition |
Delay
Deplay between restart attempts (nanoseconds).
Declaration
public long? Delay { get; set; }
Property Value
Type | Description |
---|---|
long? |
MaxAttempts
Specifies the maximum number of container restart attempts before giving up.
Declaration
public long? MaxAttempts { get; set; }
Property Value
Type | Description |
---|---|
long? |
Window
Specifies the window of time during which the restart policy will be enavluated (nanoseconds).
Declaration
public long? Window { get; set; }
Property Value
Type | Description |
---|---|
long? |
Methods
Normalize()
Recursively ensures ensures that any null class or list related properties are replaced with instances with default values or empty lists.
Declaration
public void Normalize()