@NotThreadSafe public static final class ImmutableSummaryStats.Builder extends Object
ImmutableSummaryStats
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Modifier and Type | Method and Description |
---|---|
ImmutableSummaryStats.Builder |
averageRunTime(Duration averageRunTime)
Initializes the optional value
averageRunTime to averageRunTime. |
ImmutableSummaryStats.Builder |
averageRunTime(Optional<? extends Duration> averageRunTime)
Initializes the optional value
averageRunTime to averageRunTime. |
ImmutableSummaryStats |
build()
Builds a new
ImmutableSummaryStats . |
ImmutableSummaryStats.Builder |
fastestRunTime(Duration fastestRunTime)
Initializes the optional value
fastestRunTime to fastestRunTime. |
ImmutableSummaryStats.Builder |
fastestRunTime(Optional<? extends Duration> fastestRunTime)
Initializes the optional value
fastestRunTime to fastestRunTime. |
ImmutableSummaryStats.Builder |
from(SummaryStats instance)
Fill a builder with attribute values from the provided
SummaryStats instance. |
ImmutableSummaryStats.Builder |
numCanceledRuns(long numCanceledRuns)
Initializes the value for the
numCanceledRuns attribute. |
ImmutableSummaryStats.Builder |
numFailedRuns(long numFailedRuns)
Initializes the value for the
numFailedRuns attribute. |
ImmutableSummaryStats.Builder |
numRunningRuns(long numRunningRuns)
Initializes the value for the
numRunningRuns attribute. |
ImmutableSummaryStats.Builder |
numSlaViolations(long numSlaViolations)
Initializes the value for the
numSlaViolations attribute. |
ImmutableSummaryStats.Builder |
numSuccessfulRuns(long numSuccessfulRuns)
Initializes the value for the
numSuccessfulRuns attribute. |
ImmutableSummaryStats.Builder |
slowestRunTime(Duration slowestRunTime)
Initializes the optional value
slowestRunTime to slowestRunTime. |
ImmutableSummaryStats.Builder |
slowestRunTime(Optional<? extends Duration> slowestRunTime)
Initializes the optional value
slowestRunTime to slowestRunTime. |
ImmutableSummaryStats.Builder |
totalBytesReadFromSource(long totalBytesReadFromSource)
Initializes the value for the
totalBytesReadFromSource attribute. |
ImmutableSummaryStats.Builder |
totalLogicalBackupSizeBytes(long totalLogicalBackupSizeBytes)
Initializes the value for the
totalLogicalBackupSizeBytes attribute. |
ImmutableSummaryStats.Builder |
totalPhysicalBackupSizeBytes(long totalPhysicalBackupSizeBytes)
Initializes the value for the
totalPhysicalBackupSizeBytes attribute. |
ImmutableSummaryStats.Builder |
totalRunTime(Duration totalRunTime)
Initializes the value for the
totalRunTime attribute. |
public final ImmutableSummaryStats.Builder from(SummaryStats instance)
SummaryStats
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder numRunningRuns(long numRunningRuns)
numRunningRuns
attribute.numRunningRuns
- The value for numRunningRunsthis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder numCanceledRuns(long numCanceledRuns)
numCanceledRuns
attribute.numCanceledRuns
- The value for numCanceledRunsthis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder numFailedRuns(long numFailedRuns)
numFailedRuns
attribute.numFailedRuns
- The value for numFailedRunsthis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder numSlaViolations(long numSlaViolations)
numSlaViolations
attribute.numSlaViolations
- The value for numSlaViolationsthis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder numSuccessfulRuns(long numSuccessfulRuns)
numSuccessfulRuns
attribute.numSuccessfulRuns
- The value for numSuccessfulRunsthis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder averageRunTime(Duration averageRunTime)
averageRunTime
to averageRunTime.averageRunTime
- The value for averageRunTimethis
builder for chained invocationpublic final ImmutableSummaryStats.Builder averageRunTime(Optional<? extends Duration> averageRunTime)
averageRunTime
to averageRunTime.averageRunTime
- The value for averageRunTimethis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder fastestRunTime(Duration fastestRunTime)
fastestRunTime
to fastestRunTime.fastestRunTime
- The value for fastestRunTimethis
builder for chained invocationpublic final ImmutableSummaryStats.Builder fastestRunTime(Optional<? extends Duration> fastestRunTime)
fastestRunTime
to fastestRunTime.fastestRunTime
- The value for fastestRunTimethis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder slowestRunTime(Duration slowestRunTime)
slowestRunTime
to slowestRunTime.slowestRunTime
- The value for slowestRunTimethis
builder for chained invocationpublic final ImmutableSummaryStats.Builder slowestRunTime(Optional<? extends Duration> slowestRunTime)
slowestRunTime
to slowestRunTime.slowestRunTime
- The value for slowestRunTimethis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder totalRunTime(Duration totalRunTime)
totalRunTime
attribute.totalRunTime
- The value for totalRunTimethis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder totalBytesReadFromSource(long totalBytesReadFromSource)
totalBytesReadFromSource
attribute.totalBytesReadFromSource
- The value for totalBytesReadFromSourcethis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder totalLogicalBackupSizeBytes(long totalLogicalBackupSizeBytes)
totalLogicalBackupSizeBytes
attribute.totalLogicalBackupSizeBytes
- The value for totalLogicalBackupSizeBytesthis
builder for use in a chained invocationpublic final ImmutableSummaryStats.Builder totalPhysicalBackupSizeBytes(long totalPhysicalBackupSizeBytes)
totalPhysicalBackupSizeBytes
attribute.totalPhysicalBackupSizeBytes
- The value for totalPhysicalBackupSizeBytesthis
builder for use in a chained invocationpublic ImmutableSummaryStats build()
ImmutableSummaryStats
.IllegalStateException
- if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.