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.Builderbuilder()Creates a new builder to build aReleaseResponseinstance.intReturns the capacity released from the request.intReturns the capacity of the token bucket after the release.intReturns 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, waitMethods 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 aReleaseResponseinstance. -
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ReleaseResponse.Builder,ReleaseResponse> - Returns:
- a builder for type T
-