public class ServicePlacement extends DockerObject implements Serializable
RemoteApiVersion#VERSION_1_24| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
ServicePlacement() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getConstraints() |
Integer |
getMaxReplicas()
Getter for maxReplicas
|
List<SwarmNodePlatform> |
getPlatforms() |
void |
setPlatforms(List<SwarmNodePlatform> platforms) |
ServicePlacement |
withConstraints(List<String> constraints) |
ServicePlacement |
withMaxReplicas(int maxReplicas)
Specifies the maximum amount of replicas / tasks that can run on one node.
|
getRawValuespublic static final long serialVersionUID
@CheckForNull public List<String> getConstraints()
constraintspublic ServicePlacement withConstraints(List<String> constraints)
constraintspublic List<SwarmNodePlatform> getPlatforms()
platformspublic void setPlatforms(List<SwarmNodePlatform> platforms)
public ServicePlacement withMaxReplicas(int maxReplicas)
maxReplicas - Max number of replicasIllegalArgumentException - if maxReplicas is less than 0public Integer getMaxReplicas()
Copyright © 2025. All rights reserved.