Class ReleaseResponse
java.lang.Object
software.amazon.awssdk.retries.internal.circuitbreaker.ReleaseResponse
- All Implemented Interfaces:
ToCopyableBuilder<ReleaseResponse.Builder,
ReleaseResponse>
public final class ReleaseResponse
extends Object
implements ToCopyableBuilder<ReleaseResponse.Builder,ReleaseResponse>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ReleaseResponse.Builder
builder()
Creates a new builder to build aReleaseResponse
instance.int
Returns the capacity released from the request.int
Returns the capacity of the token bucket after the release.int
Returns the max capacity for the token bucket.Take this object and create a builder that contains all of the current property values of this object.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
capacityReleased
public int capacityReleased()Returns the capacity released from the request. -
currentCapacity
public int currentCapacity()Returns the capacity of the token bucket after the release. -
maxCapacity
public int maxCapacity()Returns the max capacity for the token bucket. -
builder
Creates a new builder to build aReleaseResponse
instance. -
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ReleaseResponse.Builder,
ReleaseResponse> - Returns:
- a builder for type T
-