public static class Batch.BatchBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
batch |
private java.util.Optional<java.lang.Double> |
delay |
private java.util.Optional<java.lang.Integer> |
presencePingGatherJobTimeout |
private java.util.Optional<java.lang.Integer> |
presencePingTimeout |
Modifier | Constructor and Description |
---|---|
private |
BatchBuilder()
Constructor for BatchBuilder.
|
Modifier and Type | Method and Description |
---|---|
Batch |
build()
Returns a Batch with the values of this BatchBuilder instance.
|
Batch.BatchBuilder |
withBatchAsAmount(int value)
Sets the batch value representing an exact amount of items
|
Batch.BatchBuilder |
withBatchAsPercent(int value)
Sets the batch value representing a percent
|
Batch.BatchBuilder |
withDelay(java.lang.Double delayIn)
Batch delay specifies the time for salt to wait for more minions to return a result before
scheduling the next batch.
|
Batch.BatchBuilder |
withPresencePingGatherJobTimeout(java.lang.Integer presencePingGatherJobTimeoutIn)
Batch presence ping gather job timeout specifies the timeout in seconds for gathering the presence ping
jobs performed in salt minions to determine which minions are available during salt batch synchronous calls.
|
Batch.BatchBuilder |
withPresencePingTimeout(java.lang.Integer presencePingTimeoutIn)
Batch presence ping timeout specifies the timeout in seconds of the presence ping performed in
salt minions to determine which minions are available during salt batch calls.
|
private java.lang.String batch
private java.util.Optional<java.lang.Double> delay
private java.util.Optional<java.lang.Integer> presencePingTimeout
private java.util.Optional<java.lang.Integer> presencePingGatherJobTimeout
public Batch.BatchBuilder withBatchAsAmount(int value)
value
- the exact amount of items, which must be greater than 0public Batch.BatchBuilder withBatchAsPercent(int value)
value
- the percent, which must be greater than 0 and less than or equal to 100public Batch.BatchBuilder withDelay(java.lang.Double delayIn)
delayIn
- time to wait in seconds.public Batch.BatchBuilder withPresencePingTimeout(java.lang.Integer presencePingTimeoutIn)
presencePingTimeoutIn
- time to wait in seconds.public Batch.BatchBuilder withPresencePingGatherJobTimeout(java.lang.Integer presencePingGatherJobTimeoutIn)
presencePingGatherJobTimeoutIn
- time to wait in seconds.public Batch build()