public class LookupConstraintsBuilder
extends java.lang.Object
LookupConstraint to meet user's requirements.| Constructor and Description |
|---|
LookupConstraintsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<LookupConstraint> |
build()
Construct a never-empty collection of
LookupConstraint instances. |
LookupConstraintsBuilder |
withDesiredClusterSize(int desiredClusterSize) |
LookupConstraintsBuilder |
withTimeoutSeconds(java.lang.Integer timeoutSeconds) |
public LookupConstraintsBuilder withTimeoutSeconds(java.lang.Integer timeoutSeconds)
timeoutSeconds - Timeout in seconds. Inserting a null value resets the timeout settings.LookupConstraintsBuilder called (builder pattern).public LookupConstraintsBuilder withDesiredClusterSize(int desiredClusterSize)
desiredClusterSize - Desired amount of pods discovered. Inserting a null value resets the desired cluster
size.LookupConstraintsBuilder called (builder pattern).public java.util.Collection<LookupConstraint> build()
LookupConstraint instances. By guaranteeing the resulting collection
to be never empty, it is ensured the H2O Node lookup on available pods will always end in a reasonably finite time.Collection of LookupConstraint. The collection is never empty.