Package dev.tripswitch.admin
Record Class UpdateBreakerInput
java.lang.Object
java.lang.Record
dev.tripswitch.admin.UpdateBreakerInput
public record UpdateBreakerInput(String name, String metric, BreakerKind kind, Map<String,Object> kindParams, BreakerOp op, Double threshold, Integer windowMs, Integer minCount, Integer minStateDurationMs, Integer cooldownMs, Integer evalIntervalMs, Boolean halfOpenBackoffEnabled, Integer halfOpenBackoffCapMs, HalfOpenPolicy halfOpenIndeterminatePolicy, Integer recoveryAllowRateRampSteps, Map<String,Object> actions, Map<String,String> metadata)
extends Record
Input for updating a breaker. All fields are optional.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionUpdateBreakerInput(String name, String metric, BreakerKind kind, Map<String, Object> kindParams, BreakerOp op, Double threshold, Integer windowMs, Integer minCount, Integer minStateDurationMs, Integer cooldownMs, Integer evalIntervalMs, Boolean halfOpenBackoffEnabled, Integer halfOpenBackoffCapMs, HalfOpenPolicy halfOpenIndeterminatePolicy, Integer recoveryAllowRateRampSteps, Map<String, Object> actions, Map<String, String> metadata) Creates an instance of aUpdateBreakerInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.static UpdateBreakerInput.Builderbuilder()Returns the value of thecooldownMsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevalIntervalMsrecord component.Returns the value of thehalfOpenBackoffCapMsrecord component.Returns the value of thehalfOpenBackoffEnabledrecord component.Returns the value of thehalfOpenIndeterminatePolicyrecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thekindParamsrecord component.metadata()Returns the value of themetadatarecord component.metric()Returns the value of themetricrecord component.minCount()Returns the value of theminCountrecord component.Returns the value of theminStateDurationMsrecord component.name()Returns the value of thenamerecord component.op()Returns the value of theoprecord component.Returns the value of therecoveryAllowRateRampStepsrecord component.Returns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.windowMs()Returns the value of thewindowMsrecord component.
-
Constructor Details
-
UpdateBreakerInput
public UpdateBreakerInput(String name, String metric, BreakerKind kind, Map<String, Object> kindParams, BreakerOp op, Double threshold, Integer windowMs, Integer minCount, Integer minStateDurationMs, Integer cooldownMs, Integer evalIntervalMs, Boolean halfOpenBackoffEnabled, Integer halfOpenBackoffCapMs, HalfOpenPolicy halfOpenIndeterminatePolicy, Integer recoveryAllowRateRampSteps, Map<String, Object> actions, Map<String, String> metadata) Creates an instance of aUpdateBreakerInputrecord class.- Parameters:
name- the value for thenamerecord componentmetric- the value for themetricrecord componentkind- the value for thekindrecord componentkindParams- the value for thekindParamsrecord componentop- the value for theoprecord componentthreshold- the value for thethresholdrecord componentwindowMs- the value for thewindowMsrecord componentminCount- the value for theminCountrecord componentminStateDurationMs- the value for theminStateDurationMsrecord componentcooldownMs- the value for thecooldownMsrecord componentevalIntervalMs- the value for theevalIntervalMsrecord componenthalfOpenBackoffEnabled- the value for thehalfOpenBackoffEnabledrecord componenthalfOpenBackoffCapMs- the value for thehalfOpenBackoffCapMsrecord componenthalfOpenIndeterminatePolicy- the value for thehalfOpenIndeterminatePolicyrecord componentrecoveryAllowRateRampSteps- the value for therecoveryAllowRateRampStepsrecord componentactions- the value for theactionsrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
kindParams
Returns the value of thekindParamsrecord component.- Returns:
- the value of the
kindParamsrecord component
-
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
threshold
Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-
windowMs
Returns the value of thewindowMsrecord component.- Returns:
- the value of the
windowMsrecord component
-
minCount
Returns the value of theminCountrecord component.- Returns:
- the value of the
minCountrecord component
-
minStateDurationMs
Returns the value of theminStateDurationMsrecord component.- Returns:
- the value of the
minStateDurationMsrecord component
-
cooldownMs
Returns the value of thecooldownMsrecord component.- Returns:
- the value of the
cooldownMsrecord component
-
evalIntervalMs
Returns the value of theevalIntervalMsrecord component.- Returns:
- the value of the
evalIntervalMsrecord component
-
halfOpenBackoffEnabled
Returns the value of thehalfOpenBackoffEnabledrecord component.- Returns:
- the value of the
halfOpenBackoffEnabledrecord component
-
halfOpenBackoffCapMs
Returns the value of thehalfOpenBackoffCapMsrecord component.- Returns:
- the value of the
halfOpenBackoffCapMsrecord component
-
halfOpenIndeterminatePolicy
Returns the value of thehalfOpenIndeterminatePolicyrecord component.- Returns:
- the value of the
halfOpenIndeterminatePolicyrecord component
-
recoveryAllowRateRampSteps
Returns the value of therecoveryAllowRateRampStepsrecord component.- Returns:
- the value of the
recoveryAllowRateRampStepsrecord component
-
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-