Index
All Classes and Interfaces|All Packages|Serialized Form
A
- Abandoned(String, TimeoutCounters.AbandonedOutcome) - Constructor for record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Abandoned
-
Creates an instance of a
Abandonedrecord class. - AbandonedWorkerFailed(Instant, String, Throwable) - Constructor for record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerFailed
-
Creates an instance of a
AbandonedWorkerFailedrecord class. - AbandonedWorkerSucceeded(Instant, String) - Constructor for record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerSucceeded
-
Creates an instance of a
AbandonedWorkerSucceededrecord class. - activeCalls() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Finished
-
Returns the value of the
activeCallsrecord component. - activeCalls() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Permitted
-
Returns the value of the
activeCallsrecord component. - ActiveCalls(String, int) - Constructor for record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadSnapshot.ActiveCalls
-
Creates an instance of a
ActiveCallsrecord class. - advance(Duration) - Method in class io.github.teceli.resiliencia.test.ManualClock
-
Move the clock forward by the given duration.
- and(Resilient<T>) - Method in class io.github.teceli.resiliencia.compose.Policy
-
Add another pattern to this policy.
- assertThat(Outcome<T>) - Static method in class io.github.teceli.resiliencia.test.ResilienciaAssertions
- attemptCount() - Method in exception class io.github.teceli.resiliencia.patterns.retry.RetryExhaustedException
-
Total number of attempts made before giving up, including the first call.
- attemptCount() - Method in exception class io.github.teceli.resiliencia.patterns.retry.RetryInterruptedException
-
Total number of attempts made before the interrupt arrived, including the first call.
- attemptCount() - Method in exception class io.github.teceli.resiliencia.patterns.retry.RetryRejectedException
-
Total number of attempts made before
shouldRetrydeclined to retry, including the first call. - AttemptFailed(String, String) - Constructor for record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.AttemptFailed
-
Creates an instance of a
AttemptFailedrecord class. - AttemptFailed(Instant, String, int, Throwable) - Constructor for record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.AttemptFailed
-
Creates an instance of a
AttemptFailedrecord class. - attemptNumber() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.AttemptFailed
-
Returns the value of the
attemptNumberrecord component. - attemptNumber() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Interrupted
-
Returns the value of the
attemptNumberrecord component. - attemptNumber() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Rejected
-
Returns the value of the
attemptNumberrecord component.
B
- backoffMultiplier() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
backoffMultiplierrecord component. - Bulkhead<T> - Class in io.github.teceli.resiliencia.patterns.bulkhead
-
Bulkhead pattern: bound how many calls may execute concurrently, isolating the protected resource from overload.
- BULKHEAD - Enum constant in enum class io.github.teceli.resiliencia.core.api.PatternKind
- BulkheadCounters - Interface in io.github.teceli.resiliencia.metrics.bulkhead
-
Counter/timer-worthy occurrences emitted by a Bulkhead.
- BulkheadCounters.Call - Record Class in io.github.teceli.resiliencia.metrics.bulkhead
- BulkheadCounters.Outcome - Enum Class in io.github.teceli.resiliencia.metrics.bulkhead
- BulkheadEvent - Interface in io.github.teceli.resiliencia.patterns.bulkhead
-
Events emitted by the Bulkhead pattern.
- BulkheadEvent.Finished - Record Class in io.github.teceli.resiliencia.patterns.bulkhead
- BulkheadEvent.Permitted - Record Class in io.github.teceli.resiliencia.patterns.bulkhead
- BulkheadEvent.Rejected - Record Class in io.github.teceli.resiliencia.patterns.bulkhead
- BulkheadFullException - Exception Class in io.github.teceli.resiliencia.patterns.bulkhead
-
Thrown when a Bulkhead rejects a call because all permits are in use and no permit became available within the configured maximum wait time.
- BulkheadFullException(String, int, Duration) - Constructor for exception class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadFullException
- BulkheadSnapshot - Interface in io.github.teceli.resiliencia.metrics.bulkhead
-
Gauge-worthy live state of a Bulkhead.
- BulkheadSnapshot.ActiveCalls - Record Class in io.github.teceli.resiliencia.metrics.bulkhead
C
- call(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.compose.Policy
-
Execute the operation through the pattern chain on the calling thread, blocking until complete.
- call(Resilient.Operation<T>) - Method in interface io.github.teceli.resiliencia.core.api.Resilient
-
Execute an operation with resilience guarantees.
- call(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
- call(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
- call(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
- call(Resilient.Operation<T>) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
- call(Resilient.Operation<T>) - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
- call(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.test.FakeResilient
- Call(String, BulkheadCounters.Outcome) - Constructor for record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Call
-
Creates an instance of a
Callrecord class. - Call(String, RateLimiterCounters.Outcome) - Constructor for record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Call
-
Creates an instance of a
Callrecord class. - callAsync(Resilient.Operation<T>) - Method in interface io.github.teceli.resiliencia.core.api.Resilient
-
Execute an operation asynchronously on a new virtual thread and return a handle to its result.
- callCount() - Method in class io.github.teceli.resiliencia.test.FakeResilient
-
How many times
FakeResilient.call(io.github.teceli.resiliencia.core.api.Resilient.Operation<T>)orFakeResilient.outcome(io.github.teceli.resiliencia.core.api.Resilient.Operation<T>)has executed on this instance. - CallRecorded(String, boolean, Duration) - Constructor for record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.CallRecorded
-
Creates an instance of a
CallRecordedrecord class. - CallRecorded(Instant, String, boolean, Duration, double) - Constructor for record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Creates an instance of a
CallRecordedrecord class. - cancelOnTimeout() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Returns the value of the
cancelOnTimeoutrecord component. - CapturingListener - Class in io.github.teceli.resiliencia.test
-
A
ResilienceEvent.Listenerthat records every event it receives, in arrival order, for assertion in tests. - CapturingListener() - Constructor for class io.github.teceli.resiliencia.test.CapturingListener
- cause() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.Failure
-
Returns the value of the
causerecord component. - cause() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.AttemptFailed
-
Returns the value of the
causerecord component. - cause() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Exhausted
-
Returns the value of the
causerecord component. - cause() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Interrupted
-
Returns the value of the
causerecord component. - cause() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Rejected
-
Returns the value of the
causerecord component. - cause() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Failed
-
Returns the value of the
causerecord component. - cause() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerFailed
-
Returns the value of the
causerecord component. - CIRCUIT_BREAKER - Enum constant in enum class io.github.teceli.resiliencia.core.api.PatternKind
- CircuitBreaker<T> - Class in io.github.teceli.resiliencia.patterns.circuitbreaker
-
CircuitBreaker pattern: track recent call outcomes in a sliding window and stop calling a failing or slow downstream once the failure or slow-call rate crosses its threshold, rejecting calls immediately instead of piling more load onto something already struggling.
- CircuitBreakerCounters - Interface in io.github.teceli.resiliencia.metrics.circuitbreaker
-
Counter/timer-worthy occurrences emitted by a CircuitBreaker.
- CircuitBreakerCounters.CallRecorded - Record Class in io.github.teceli.resiliencia.metrics.circuitbreaker
- CircuitBreakerCounters.ClosedFromHalfOpen - Record Class in io.github.teceli.resiliencia.metrics.circuitbreaker
-
Emitted alongside a Transition(to=CLOSED): every Closed transition originates from HalfOpen in the current state machine, and successfulTestCalls only has meaning for that specific case.
- CircuitBreakerCounters.Rejected - Record Class in io.github.teceli.resiliencia.metrics.circuitbreaker
-
A call rejected without executing, because the circuit was Open or HalfOpen with no permits left.
- CircuitBreakerCounters.Transition - Record Class in io.github.teceli.resiliencia.metrics.circuitbreaker
- CircuitBreakerEvent - Interface in io.github.teceli.resiliencia.patterns.circuitbreaker
-
Events emitted by the CircuitBreaker pattern.
- CircuitBreakerEvent.CallRecorded - Record Class in io.github.teceli.resiliencia.patterns.circuitbreaker
- CircuitBreakerEvent.Closed - Record Class in io.github.teceli.resiliencia.patterns.circuitbreaker
- CircuitBreakerEvent.HalfOpened - Record Class in io.github.teceli.resiliencia.patterns.circuitbreaker
- CircuitBreakerEvent.Opened - Record Class in io.github.teceli.resiliencia.patterns.circuitbreaker
- CircuitBreakerEvent.Reason - Enum Class in io.github.teceli.resiliencia.patterns.circuitbreaker
- CircuitBreakerEvent.Rejected - Record Class in io.github.teceli.resiliencia.patterns.circuitbreaker
- CircuitBreakerEvent.RejectingPhase - Enum Class in io.github.teceli.resiliencia.patterns.circuitbreaker
- CircuitBreakerOpenException - Exception Class in io.github.teceli.resiliencia.patterns.circuitbreaker
-
Thrown when a call is rejected because the circuit breaker will not let it through: either the circuit is Open, or it is HalfOpen and every permitted test call has already been issued.
- CircuitBreakerSnapshot - Interface in io.github.teceli.resiliencia.metrics.circuitbreaker
-
Gauge-worthy live state of a CircuitBreaker.
- CircuitBreakerSnapshot.FailureRate - Record Class in io.github.teceli.resiliencia.metrics.circuitbreaker
- CircuitBreakerSnapshot.Phase - Enum Class in io.github.teceli.resiliencia.metrics.circuitbreaker
-
Deliberately a small, stable enum, not a reuse of
patterns' ownCircuitStatesealed type —CircuitState.Opencarries fields useful to the pattern but irrelevant and unstable as gauge content. - CircuitBreakerSnapshot.State - Record Class in io.github.teceli.resiliencia.metrics.circuitbreaker
- CircuitState - Interface in io.github.teceli.resiliencia.patterns.circuitbreaker
-
The state of a
CircuitBreakerat a point in time. - CircuitState.Closed - Record Class in io.github.teceli.resiliencia.patterns.circuitbreaker
-
Calls pass through normally while their outcomes are recorded in the sliding window.
- CircuitState.HalfOpen - Record Class in io.github.teceli.resiliencia.patterns.circuitbreaker
-
A limited number of test calls are let through to probe whether the downstream has recovered.
- CircuitState.Open - Record Class in io.github.teceli.resiliencia.patterns.circuitbreaker
-
Calls are rejected immediately.
- clock() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
clockrecord component. - clock() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Returns the value of the
clockrecord component. - Clock - Interface in io.github.teceli.resiliencia.core.spi
-
Abstraction over time, used by patterns that need to read the current instant or wait (Retry backoff, CircuitBreaker open-state duration, RateLimiter windows, ...).
- Closed() - Constructor for record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Closed
-
Creates an instance of a
Closedrecord class. - Closed(Instant, String, int) - Constructor for record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Closed
-
Creates an instance of a
Closedrecord class. - CLOSED - Enum constant in enum class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.Phase
- ClosedFromHalfOpen(String, int) - Constructor for record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.ClosedFromHalfOpen
-
Creates an instance of a
ClosedFromHalfOpenrecord class. - compose(Resilient<T>) - Static method in class io.github.teceli.resiliencia.compose.Policy
-
Create a policy with a single pattern.
- count() - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadSnapshot.ActiveCalls
-
Returns the value of the
countrecord component. - count() - Method in class io.github.teceli.resiliencia.test.CapturingListener
- Counters - Interface in io.github.teceli.resiliencia.metrics
-
Counter/timer-worthy occurrences emitted by a pattern or by Policy's order validation.
- countersCount() - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
-
Returns the number of captured counters.
- create() - Static method in class io.github.teceli.resiliencia.test.ManualClock
-
A manual clock starting at a fixed, arbitrary instant.
- create(String) - Static method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
A
Retryinstance configured with sensible defaults, ready to use as-is or refine further viawithXmethods. - currentFailureRate() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Returns the value of the
currentFailureRaterecord component. - CUSTOM - Enum constant in enum class io.github.teceli.resiliencia.core.api.PatternKind
-
A user-defined
Resilientimplementation that is none of the built-in patterns.
D
- DETAILED - Enum constant in enum class io.github.teceli.resiliencia.opentelemetry.DurationInstrumentationMode
-
Duration recorded via
DoubleHistogram.record(...), yielding full percentile/ distribution data, with the documented per-callsynchronizedpinning risk from the OTel SDK's default explicit-bucket histogram aggregation. - DurationInstrumentationMode - Enum Class in io.github.teceli.resiliencia.opentelemetry
-
How
OpenTelemetryResilienceMetricsrecords duration metrics (resilience.timeout.duration,resilience.circuitbreaker.calls).
E
- elapsed() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.CallRecorded
-
Returns the value of the
elapsedrecord component. - elapsed() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Succeeded
-
Returns the value of the
elapsedrecord component. - elapsed() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Succeeded
-
Returns the value of the
elapsedrecord component. - elapsedTime() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Returns the value of the
elapsedTimerecord component. - equals(Object) - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.core.api.Outcome.Failure
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.core.api.Outcome.Success
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.core.api.Outcome.TimedOut
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Call
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadSnapshot.ActiveCalls
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.CallRecorded
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.ClosedFromHalfOpen
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Rejected
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Transition
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.FailureRate
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.State
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.policy.PolicyCounters.ValidationWarning
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Call
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterSnapshot.RemainingPermits
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.AttemptFailed
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Exhausted
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Interrupted
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Rejected
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Success
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Abandoned
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Failed
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Succeeded
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.TimedOut
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Finished
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Permitted
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Rejected
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Closed
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.HalfOpened
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Opened
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Rejected
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Closed
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.HalfOpen
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Open
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Permitted
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Rejected
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.AttemptFailed
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Exhausted
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Interrupted
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Rejected
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Success
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerFailed
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerSucceeded
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Failed
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Succeeded
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.TimedOut
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.AttemptFailed
-
Returns the value of the
errorrecord component. - error() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Rejected
-
Returns the value of the
errorrecord component. - error() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Failed
-
Returns the value of the
errorrecord component. - estimatedWait() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Rejected
-
Returns the value of the
estimatedWaitrecord component. - events() - Method in class io.github.teceli.resiliencia.test.CapturingListener
-
All events received so far, in arrival order.
- eventsOfType(Class<T>) - Method in class io.github.teceli.resiliencia.test.CapturingListener
-
Events received so far, narrowed to a specific event type.
- execute() - Method in interface io.github.teceli.resiliencia.core.api.Resilient.Operation
- Exhausted(String, String) - Constructor for record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Exhausted
-
Creates an instance of a
Exhaustedrecord class. - Exhausted(Instant, String, int, Throwable) - Constructor for record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Exhausted
-
Creates an instance of a
Exhaustedrecord class.
F
- Failed(String, String) - Constructor for record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Failed
-
Creates an instance of a
Failedrecord class. - Failed(Instant, String, Throwable) - Constructor for record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Failed
-
Creates an instance of a
Failedrecord class. - FAILED - Enum constant in enum class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.AbandonedOutcome
- Failure(Throwable) - Constructor for record class io.github.teceli.resiliencia.core.api.Outcome.Failure
-
Creates an instance of a
Failurerecord class. - FAILURE_RATE_EXCEEDED - Enum constant in enum class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Reason
- failureCause() - Method in class io.github.teceli.resiliencia.test.OutcomeAssert
-
Switch to standard AssertJ throwable assertions on the failure cause for further chaining.
- FailureRate(String, double) - Constructor for record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.FailureRate
-
Creates an instance of a
FailureRaterecord class. - FakeResilienceMetrics - Class in io.github.teceli.resiliencia.test
-
Fake implementation of
ResilienceMetricsfor testing code that consumes metrics. - FakeResilienceMetrics() - Constructor for class io.github.teceli.resiliencia.test.FakeResilienceMetrics
- FakeResilient<T> - Class in io.github.teceli.resiliencia.test
-
A pass-through
Resilientfor testing code that composes or accepts patterns (e.g. - Finished(Instant, String, int) - Constructor for record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Finished
-
Creates an instance of a
Finishedrecord class. - fold(Function<T, U>, Function<Throwable, U>) - Method in interface io.github.teceli.resiliencia.core.api.Outcome
-
Fold over the outcome: apply one function if Success, another if Failure.
- forHalfOpenState(String) - Static method in exception class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerOpenException
-
A rejection while the circuit is HalfOpen, because every permitted test call has already been issued.
- forOpenState(String, Instant, Duration) - Static method in exception class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerOpenException
-
A rejection while the circuit is Open, carrying when it opened and how much longer it will stay Open before a HalfOpen test call is attempted.
G
- getAllCounters() - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
-
Returns an immutable view of all captured counters in emission order.
- getAllSnapshots() - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
-
Returns an immutable view of all captured snapshots in emission order.
- getCountersOfType(Class<T>) - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
-
Returns all captured counters of a specific type.
- getSnapshotsOfType(Class<T>) - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
-
Returns all captured snapshots of a specific type.
H
- HALF_OPEN - Enum constant in enum class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.Phase
- HALF_OPEN - Enum constant in enum class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.RejectingPhase
- HalfOpen(int, int) - Constructor for record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.HalfOpen
-
Creates an instance of a
HalfOpenrecord class. - HalfOpened(Instant, String) - Constructor for record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.HalfOpened
-
Creates an instance of a
HalfOpenedrecord class. - hasFailureOfType(Class<? extends Throwable>) - Method in class io.github.teceli.resiliencia.test.OutcomeAssert
- hashCode() - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.Failure
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.Success
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.TimedOut
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Call
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadSnapshot.ActiveCalls
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.CallRecorded
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.ClosedFromHalfOpen
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Rejected
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Transition
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.FailureRate
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.State
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.policy.PolicyCounters.ValidationWarning
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Call
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterSnapshot.RemainingPermits
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.AttemptFailed
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Exhausted
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Interrupted
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Rejected
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Success
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Abandoned
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Failed
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Succeeded
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.TimedOut
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Finished
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Permitted
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Rejected
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Closed
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.HalfOpened
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Opened
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Rejected
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Closed
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.HalfOpen
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Open
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Permitted
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Rejected
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.AttemptFailed
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Exhausted
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Interrupted
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Rejected
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Success
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerFailed
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerSucceeded
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Failed
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Succeeded
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.TimedOut
-
Returns a hash code value for this object.
- hasOwnDeadline() - Method in class io.github.teceli.resiliencia.compose.Policy
-
True if any pattern in this chain has its own deadline, checked recursively through nested
Policypatterns. - hasOwnDeadline() - Method in interface io.github.teceli.resiliencia.core.api.Resilient
-
Whether this pattern already enforces its own upper bound on total duration, independent of any outer Timeout.
- hasOwnDeadline() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
True once
Retry.withOverallDeadline(long)has been configured, telling Policy this Retry already caps its own total duration. - hasValue(T) - Method in class io.github.teceli.resiliencia.test.OutcomeAssert
I
- initialDelayMs() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
initialDelayMsrecord component. - inner() - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Returns the value of the
innerrecord component. - inner() - Method in record class io.github.teceli.resiliencia.metrics.policy.PolicyCounters.ValidationWarning
-
Returns the value of the
innerrecord component. - INSTANCE - Static variable in class io.github.teceli.resiliencia.metrics.NoOpMetrics
-
Singleton instance of the no-op metrics implementation.
- instant() - Method in interface io.github.teceli.resiliencia.core.spi.Clock
-
The current instant, as seen by this clock.
- instant() - Method in class io.github.teceli.resiliencia.test.ManualClock
- Interrupted(String, String) - Constructor for record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Interrupted
-
Creates an instance of a
Interruptedrecord class. - Interrupted(Instant, String, int, Throwable) - Constructor for record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Interrupted
-
Creates an instance of a
Interruptedrecord class. - InvalidPolicyException - Exception Class in io.github.teceli.resiliencia.compose
-
Thrown when a Policy is constructed with an invalid configuration (e.g. no patterns).
- InvalidPolicyException(String, String) - Constructor for exception class io.github.teceli.resiliencia.compose.InvalidPolicyException
- io.github.teceli.resiliencia.compose - module io.github.teceli.resiliencia.compose
- io.github.teceli.resiliencia.compose - package io.github.teceli.resiliencia.compose
- io.github.teceli.resiliencia.core - module io.github.teceli.resiliencia.core
- io.github.teceli.resiliencia.core.api - package io.github.teceli.resiliencia.core.api
- io.github.teceli.resiliencia.core.spi - package io.github.teceli.resiliencia.core.spi
- io.github.teceli.resiliencia.metrics - module io.github.teceli.resiliencia.metrics
- io.github.teceli.resiliencia.metrics - package io.github.teceli.resiliencia.metrics
- io.github.teceli.resiliencia.metrics.bulkhead - package io.github.teceli.resiliencia.metrics.bulkhead
- io.github.teceli.resiliencia.metrics.circuitbreaker - package io.github.teceli.resiliencia.metrics.circuitbreaker
- io.github.teceli.resiliencia.metrics.policy - package io.github.teceli.resiliencia.metrics.policy
- io.github.teceli.resiliencia.metrics.ratelimiter - package io.github.teceli.resiliencia.metrics.ratelimiter
- io.github.teceli.resiliencia.metrics.retry - package io.github.teceli.resiliencia.metrics.retry
- io.github.teceli.resiliencia.metrics.timeout - package io.github.teceli.resiliencia.metrics.timeout
- io.github.teceli.resiliencia.micrometer - module io.github.teceli.resiliencia.micrometer
- io.github.teceli.resiliencia.micrometer - package io.github.teceli.resiliencia.micrometer
- io.github.teceli.resiliencia.opentelemetry - module io.github.teceli.resiliencia.opentelemetry
- io.github.teceli.resiliencia.opentelemetry - package io.github.teceli.resiliencia.opentelemetry
- io.github.teceli.resiliencia.patterns - module io.github.teceli.resiliencia.patterns
- io.github.teceli.resiliencia.patterns.bulkhead - package io.github.teceli.resiliencia.patterns.bulkhead
- io.github.teceli.resiliencia.patterns.circuitbreaker - package io.github.teceli.resiliencia.patterns.circuitbreaker
- io.github.teceli.resiliencia.patterns.ratelimiter - package io.github.teceli.resiliencia.patterns.ratelimiter
- io.github.teceli.resiliencia.patterns.retry - package io.github.teceli.resiliencia.patterns.retry
- io.github.teceli.resiliencia.patterns.timeout - package io.github.teceli.resiliencia.patterns.timeout
- io.github.teceli.resiliencia.test - module io.github.teceli.resiliencia.test
- io.github.teceli.resiliencia.test - package io.github.teceli.resiliencia.test
- isEmpty() - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
-
Returns true if no snapshots or counters have been captured.
- isFailure() - Method in class io.github.teceli.resiliencia.test.OutcomeAssert
- isSuccess() - Method in class io.github.teceli.resiliencia.test.OutcomeAssert
- isSuccessful() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Returns the value of the
isSuccessfulrecord component. - isTimedOut() - Method in class io.github.teceli.resiliencia.test.OutcomeAssert
- isTimedOutAfter(Duration) - Method in class io.github.teceli.resiliencia.test.OutcomeAssert
J
- jitterFactor() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
jitterFactorrecord component.
L
- lastError() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Exhausted
-
Returns the value of the
lastErrorrecord component. - lastError() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Interrupted
-
Returns the value of the
lastErrorrecord component. - limit() - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
The configured maximum number of calls per
period. - limit() - Method in exception class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterException
-
The number of calls permitted per window.
- listeners() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
listenersrecord component. - listeners() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Returns the value of the
listenersrecord component.
M
- ManualClock - Class in io.github.teceli.resiliencia.test
-
Deterministic
Clockfor tests: time only moves when advanced explicitly viaManualClock.advance(java.time.Duration)or when a pattern sleeps, so timing-based behavior (Retry backoff, RateLimiter windows) can be asserted exactly and runs instantly. - maxAttempts() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
maxAttemptsrecord component. - maxConcurrentCalls() - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
-
The configured maximum number of concurrent calls.
- maxConcurrentCalls() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Rejected
-
Returns the value of the
maxConcurrentCallsrecord component. - maxConcurrentCalls() - Method in exception class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadFullException
-
The concurrency limit that was reached.
- maxDelayMs() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
maxDelayMsrecord component. - maxWait() - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
-
How long an excess call may wait for a permit before being rejected.
- maxWait() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Rejected
-
Returns the value of the
maxWaitrecord component. - maxWait() - Method in exception class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadFullException
-
How long the call waited for a permit before being rejected (zero means fail-fast).
- maxWait() - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
How long an excess call may wait for the next window before being rejected.
- maxWait() - Method in exception class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterException
-
How long the call was allowed to wait for a permit before being rejected (zero means fail-fast).
- MicrometerResilienceMetrics - Class in io.github.teceli.resiliencia.micrometer
-
ResilienceMetricsbacked by a MicrometerMeterRegistry. - MicrometerResilienceMetrics(MeterRegistry) - Constructor for class io.github.teceli.resiliencia.micrometer.MicrometerResilienceMetrics
N
- name() - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Call
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadSnapshot.ActiveCalls
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.CallRecorded
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.ClosedFromHalfOpen
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Rejected
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Transition
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.FailureRate
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.State
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Call
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterSnapshot.RemainingPermits
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.AttemptFailed
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Exhausted
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Interrupted
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Rejected
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Success
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Abandoned
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Failed
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Succeeded
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.TimedOut
-
Returns the value of the
namerecord component. - name() - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
-
The name identifying this bulkhead instance, used in events and rejection exceptions.
- name() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Finished
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Permitted
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Rejected
-
Returns the value of the
namerecord component. - name() - Method in exception class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadFullException
-
The bulkhead instance name.
- name() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Closed
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.HalfOpened
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Opened
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Rejected
-
Returns the value of the
namerecord component. - name() - Method in exception class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerOpenException
- name() - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
The name identifying this rate limiter instance, used in events and rejection exceptions.
- name() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Permitted
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Rejected
-
Returns the value of the
namerecord component. - name() - Method in exception class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterException
-
The rate limiter instance name.
- name() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.AttemptFailed
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Exhausted
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Interrupted
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Rejected
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Success
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerFailed
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerSucceeded
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Failed
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Succeeded
-
Returns the value of the
namerecord component. - name() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.TimedOut
-
Returns the value of the
namerecord component. - NoOpMetrics - Class in io.github.teceli.resiliencia.metrics
-
A no-op
ResilienceMetricsimplementation that discards all recordings. - numberOfSuccessfulTestCalls() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Closed
-
Returns the value of the
numberOfSuccessfulTestCallsrecord component.
O
- observe(Counters) - Method in class io.github.teceli.resiliencia.metrics.NoOpMetrics
- observe(Counters) - Method in interface io.github.teceli.resiliencia.metrics.ResilienceMetrics
-
Observe a counter/timer-worthy occurrence from any pattern (Retry, Timeout, CircuitBreaker, Bulkhead, RateLimiter) or from Policy's order validation.
- observe(Counters) - Method in class io.github.teceli.resiliencia.micrometer.MicrometerResilienceMetrics
- observe(Counters) - Method in class io.github.teceli.resiliencia.opentelemetry.OpenTelemetryResilienceMetrics
- observe(Counters) - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
- observe(Snapshot) - Method in class io.github.teceli.resiliencia.metrics.NoOpMetrics
- observe(Snapshot) - Method in interface io.github.teceli.resiliencia.metrics.ResilienceMetrics
-
Observe a gauge-worthy snapshot of live state from CircuitBreaker, Bulkhead, or RateLimiter.
- observe(Snapshot) - Method in class io.github.teceli.resiliencia.micrometer.MicrometerResilienceMetrics
- observe(Snapshot) - Method in class io.github.teceli.resiliencia.opentelemetry.OpenTelemetryResilienceMetrics
- observe(Snapshot) - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
- of(String) - Static method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
A
CircuitBreakeridentified byname, starting Closed with the default thresholds and window size. - of(String, int) - Static method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
-
A
Bulkheadallowing the given number of concurrent calls, rejecting excess calls immediately (maxWaitzero). - of(String, int, Duration) - Static method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
A
RateLimiterallowinglimitcalls perperiod, rejecting excess calls immediately (maxWaitzero). - of(String, Duration) - Static method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
A
Timeoutwith the given deadline, ready to use as-is or refine further viawithXmethods. - onEvent(ResilienceEvent) - Method in interface io.github.teceli.resiliencia.core.spi.ResilienceEvent.Listener
- onEvent(ResilienceEvent) - Method in class io.github.teceli.resiliencia.metrics.ResilienceMetricsListener
- onEvent(ResilienceEvent) - Method in class io.github.teceli.resiliencia.test.CapturingListener
- Open(Instant, Duration) - Constructor for record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Open
-
Creates an instance of a
Openrecord class. - OPEN - Enum constant in enum class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.Phase
- OPEN - Enum constant in enum class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.RejectingPhase
- Opened(Instant, String, CircuitBreakerEvent.Reason) - Constructor for record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Opened
-
Creates an instance of a
Openedrecord class. - openedAt() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Open
-
Returns the value of the
openedAtrecord component. - openSince() - Method in exception class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerOpenException
- OpenTelemetryResilienceMetrics - Class in io.github.teceli.resiliencia.opentelemetry
-
ResilienceMetricsbacked by an OpenTelemetryMeter. - OpenTelemetryResilienceMetrics(Meter) - Constructor for class io.github.teceli.resiliencia.opentelemetry.OpenTelemetryResilienceMetrics
- OpenTelemetryResilienceMetrics(Meter, DurationInstrumentationMode) - Constructor for class io.github.teceli.resiliencia.opentelemetry.OpenTelemetryResilienceMetrics
- outcome() - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Call
-
Returns the value of the
outcomerecord component. - outcome() - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Call
-
Returns the value of the
outcomerecord component. - outcome() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Abandoned
-
Returns the value of the
outcomerecord component. - outcome(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.compose.Policy
-
Execute and capture outcome (never throws).
- outcome(Resilient.Operation<T>) - Method in interface io.github.teceli.resiliencia.core.api.Resilient
-
Execute an operation and capture the result or failure as an Outcome.
- outcome(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
- outcome(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
- outcome(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
- outcome(Resilient.Operation<T>) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
- outcome(Resilient.Operation<T>) - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
- outcome(Resilient.Operation<T>) - Method in class io.github.teceli.resiliencia.test.FakeResilient
- Outcome<T> - Interface in io.github.teceli.resiliencia.core.api
-
Result of executing an operation with a pattern.
- Outcome.Failure<T> - Record Class in io.github.teceli.resiliencia.core.api
-
Operation failed with an exception.
- Outcome.Success<T> - Record Class in io.github.teceli.resiliencia.core.api
-
Operation succeeded and returned a value.
- Outcome.TimedOut<T> - Record Class in io.github.teceli.resiliencia.core.api
-
Operation did not complete within the configured timeout.
- OutcomeAssert<T> - Class in io.github.teceli.resiliencia.test
-
AssertJ assertions for
Outcome. - outer() - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Returns the value of the
outerrecord component. - outer() - Method in record class io.github.teceli.resiliencia.metrics.policy.PolicyCounters.ValidationWarning
-
Returns the value of the
outerrecord component. - overallDeadline() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
overallDeadlinerecord component.
P
- passthrough() - Static method in class io.github.teceli.resiliencia.test.FakeResilient
-
A fake that simply executes the operation, reporting itself as a CUSTOM pattern.
- patternKind() - Method in interface io.github.teceli.resiliencia.core.api.Resilient
-
The kind of this pattern, used for internal comparisons (e.g.
- patternKind() - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
- patternKind() - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
- patternKind() - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
- patternKind() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
- patternKind() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
- patternKind() - Method in class io.github.teceli.resiliencia.test.FakeResilient
- PatternKind - Enum Class in io.github.teceli.resiliencia.core.api
-
The kind of a resilience pattern, used for internal identity checks — e.g.
- patternName() - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
- patternName() - Method in interface io.github.teceli.resiliencia.core.api.Resilient
-
The name of this pattern, e.g.
- patternName() - Method in interface io.github.teceli.resiliencia.core.spi.ResilienceEvent
- patternName() - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
- patternName() - Method in interface io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent
- patternName() - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
- patternName() - Method in interface io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent
- patternName() - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
- patternName() - Method in interface io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent
- patternName() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
- patternName() - Method in interface io.github.teceli.resiliencia.patterns.retry.RetryEvent
- patternName() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
- patternName() - Method in interface io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent
- patternName() - Method in class io.github.teceli.resiliencia.test.FakeResilient
- period() - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
The configured length of the fixed window.
- period() - Method in exception class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterException
-
The window length.
- permitsIssued() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.HalfOpen
-
Returns the value of the
permitsIssuedrecord component. - Permitted(Instant, String, int) - Constructor for record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Permitted
-
Creates an instance of a
Permittedrecord class. - Permitted(Instant, String, int) - Constructor for record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Permitted
-
Creates an instance of a
Permittedrecord class. - PERMITTED - Enum constant in enum class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Outcome
- PERMITTED - Enum constant in enum class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Outcome
- phase() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Rejected
-
Returns the value of the
phaserecord component. - phase() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.State
-
Returns the value of the
phaserecord component. - phase() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Rejected
-
Returns the value of the
phaserecord component. - Policy<T> - Class in io.github.teceli.resiliencia.compose
-
Fluent composition of multiple resilience patterns.
- PolicyCounters - Interface in io.github.teceli.resiliencia.metrics.policy
-
Counter-worthy occurrences emitted by Policy's order validation.
- PolicyCounters.ValidationWarning - Record Class in io.github.teceli.resiliencia.metrics.policy
- PolicyValidationWarning - Record Class in io.github.teceli.resiliencia.compose
-
Emitted by
Policywhenever a WARN-severityOrderingRulefires duringPolicy.and(Resilient)and construction proceeds — in addition to, not instead of, the existing SLF4JWARNlog line. - PolicyValidationWarning(Instant, PatternKind, PatternKind, String, String) - Constructor for record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Creates an instance of a
PolicyValidationWarningrecord class. - problem() - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Returns the value of the
problemrecord component.
R
- rate() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.FailureRate
-
Returns the value of the
raterecord component. - RATE_LIMITER - Enum constant in enum class io.github.teceli.resiliencia.core.api.PatternKind
- RateLimiter<T> - Class in io.github.teceli.resiliencia.patterns.ratelimiter
-
RateLimiter pattern: bound how many calls may start per time window (fixed window,
limitcalls perperiod). - RateLimiterCounters - Interface in io.github.teceli.resiliencia.metrics.ratelimiter
-
Counter/timer-worthy occurrences emitted by a RateLimiter.
- RateLimiterCounters.Call - Record Class in io.github.teceli.resiliencia.metrics.ratelimiter
- RateLimiterCounters.Outcome - Enum Class in io.github.teceli.resiliencia.metrics.ratelimiter
- RateLimiterEvent - Interface in io.github.teceli.resiliencia.patterns.ratelimiter
-
Events emitted by the RateLimiter pattern.
- RateLimiterEvent.Permitted - Record Class in io.github.teceli.resiliencia.patterns.ratelimiter
- RateLimiterEvent.Rejected - Record Class in io.github.teceli.resiliencia.patterns.ratelimiter
- RateLimiterException - Exception Class in io.github.teceli.resiliencia.patterns.ratelimiter
-
Thrown when a RateLimiter rejects a call because the current window's permits are used up and no permit would become available within the configured maximum wait time.
- RateLimiterException(String, int, Duration, Duration) - Constructor for exception class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterException
- RateLimiterSnapshot - Interface in io.github.teceli.resiliencia.metrics.ratelimiter
-
Gauge-worthy live state of a RateLimiter.
- RateLimiterSnapshot.RemainingPermits - Record Class in io.github.teceli.resiliencia.metrics.ratelimiter
- reason() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Transition
-
Returns the value of the
reasonrecord component. - reason() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Opened
-
Returns the value of the
reasonrecord component. - Rejected(String, CircuitBreakerEvent.RejectingPhase) - Constructor for record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Rejected
-
Creates an instance of a
Rejectedrecord class. - Rejected(String, String) - Constructor for record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Rejected
-
Creates an instance of a
Rejectedrecord class. - Rejected(Instant, String, int, Throwable) - Constructor for record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Rejected
-
Creates an instance of a
Rejectedrecord class. - Rejected(Instant, String, int, Duration) - Constructor for record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Rejected
-
Creates an instance of a
Rejectedrecord class. - Rejected(Instant, String, CircuitBreakerEvent.RejectingPhase) - Constructor for record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Rejected
-
Creates an instance of a
Rejectedrecord class. - Rejected(Instant, String, Duration) - Constructor for record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Rejected
-
Creates an instance of a
Rejectedrecord class. - REJECTED - Enum constant in enum class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Outcome
- REJECTED - Enum constant in enum class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Outcome
- remaining() - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterSnapshot.RemainingPermits
-
Returns the value of the
remainingrecord component. - remainingPermits() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Permitted
-
Returns the value of the
remainingPermitsrecord component. - RemainingPermits(String, int) - Constructor for record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterSnapshot.RemainingPermits
-
Creates an instance of a
RemainingPermitsrecord class. - remainingWait() - Method in exception class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerOpenException
- remainingWait() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Open
-
Returns the value of the
remainingWaitrecord component. - reset() - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
-
Clears all captured snapshots and counters.
- ResilienceEvent - Interface in io.github.teceli.resiliencia.core.spi
-
Base interface for all resilience events.
- ResilienceEvent.Listener - Interface in io.github.teceli.resiliencia.core.spi
-
Listener for consuming events from patterns.
- ResilienceMetrics - Interface in io.github.teceli.resiliencia.metrics
-
Backend-facing contract that concrete metrics implementations (Micrometer, OpenTelemetry, custom) must implement to observe pattern and Policy events as metrics.
- ResilienceMetricsListener - Class in io.github.teceli.resiliencia.metrics
- ResilienceMetricsListener(ResilienceMetrics) - Constructor for class io.github.teceli.resiliencia.metrics.ResilienceMetricsListener
- ResilienceMetricsListener(ResilienceMetrics, Set<Class<? extends Throwable>>) - Constructor for class io.github.teceli.resiliencia.metrics.ResilienceMetricsListener
- ResilienciaAssertions - Class in io.github.teceli.resiliencia.test
-
Entry point for resiliencia-specific AssertJ assertions.
- Resilient<T> - Interface in io.github.teceli.resiliencia.core.api
-
Base interface for all resilience patterns.
- Resilient.Operation<T> - Interface in io.github.teceli.resiliencia.core.api
- ResilientException - Exception Class in io.github.teceli.resiliencia.core.api
-
Base exception for all resiliencia errors.
- ResilientException(String) - Constructor for exception class io.github.teceli.resiliencia.core.api.ResilientException
- ResilientException(String, Throwable) - Constructor for exception class io.github.teceli.resiliencia.core.api.ResilientException
- ResilientTimeoutException - Exception Class in io.github.teceli.resiliencia.core.api
-
Thrown when an operation does not complete within the configured timeout.
- ResilientTimeoutException(Duration) - Constructor for exception class io.github.teceli.resiliencia.core.api.ResilientTimeoutException
- Retry<T> - Record Class in io.github.teceli.resiliencia.patterns.retry
-
Retry pattern: execute an operation, retrying on failure up to maxAttempts.
- Retry(String, int, long, double, long, double, OptionalLong, Predicate<Throwable>, List<ResilienceEvent.Listener>, Clock) - Constructor for record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Creates an instance of a
Retryrecord class. - RETRY - Enum constant in enum class io.github.teceli.resiliencia.core.api.PatternKind
- RetryCounters - Interface in io.github.teceli.resiliencia.metrics.retry
-
Counter/timer-worthy occurrences emitted by Retry.
- RetryCounters.AttemptFailed - Record Class in io.github.teceli.resiliencia.metrics.retry
-
One failed attempt, sourced from
RetryEvent.AttemptFailed, which fires once per failed attempt within a call. - RetryCounters.Exhausted - Record Class in io.github.teceli.resiliencia.metrics.retry
- RetryCounters.Interrupted - Record Class in io.github.teceli.resiliencia.metrics.retry
- RetryCounters.Rejected - Record Class in io.github.teceli.resiliencia.metrics.retry
- RetryCounters.Success - Record Class in io.github.teceli.resiliencia.metrics.retry
-
The call succeeded — sourced from
RetryEvent.Success, emitted exactly once per call, when the retry loop as a whole succeeds. - RetryEvent - Interface in io.github.teceli.resiliencia.patterns.retry
-
Events emitted by the Retry pattern.
- RetryEvent.AttemptFailed - Record Class in io.github.teceli.resiliencia.patterns.retry
- RetryEvent.Exhausted - Record Class in io.github.teceli.resiliencia.patterns.retry
- RetryEvent.Interrupted - Record Class in io.github.teceli.resiliencia.patterns.retry
- RetryEvent.Rejected - Record Class in io.github.teceli.resiliencia.patterns.retry
- RetryEvent.Success - Record Class in io.github.teceli.resiliencia.patterns.retry
- RetryExhaustedException - Exception Class in io.github.teceli.resiliencia.patterns.retry
-
Thrown by the Retry pattern when all configured attempts have failed.
- RetryExhaustedException(int, Throwable) - Constructor for exception class io.github.teceli.resiliencia.patterns.retry.RetryExhaustedException
- RetryInterruptedException - Exception Class in io.github.teceli.resiliencia.patterns.retry
-
Thrown by the Retry pattern when the thread is interrupted while waiting for a backoff delay between attempts.
- RetryInterruptedException(int, Throwable) - Constructor for exception class io.github.teceli.resiliencia.patterns.retry.RetryInterruptedException
- RetryRejectedException - Exception Class in io.github.teceli.resiliencia.patterns.retry
-
Thrown by the Retry pattern when
shouldRetrydeclines to retry a failure before the attempt budget is exhausted. - RetryRejectedException(int, Throwable) - Constructor for exception class io.github.teceli.resiliencia.patterns.retry.RetryRejectedException
S
- SAFE - Enum constant in enum class io.github.teceli.resiliencia.opentelemetry.DurationInstrumentationMode
-
Duration recorded as a lock-free counter pair — a count and a summed duration, both backed by
LongSumAggregator/DoubleSumAggregator. - shouldRetry() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns the value of the
shouldRetryrecord component. - sleep(long) - Method in interface io.github.teceli.resiliencia.core.spi.Clock
-
Suspend the calling thread for the given duration, as measured by this clock.
- sleep(long) - Method in class io.github.teceli.resiliencia.test.ManualClock
-
Does not block: advances the clock by the requested duration and returns immediately.
- SLOW_CALL_RATE_EXCEEDED - Enum constant in enum class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Reason
- Snapshot - Interface in io.github.teceli.resiliencia.metrics
-
Gauge-worthy live state emitted by a pattern.
- snapshotCount() - Method in class io.github.teceli.resiliencia.test.FakeResilienceMetrics
-
Returns the number of captured snapshots.
- startingAt(Instant) - Static method in class io.github.teceli.resiliencia.test.ManualClock
-
A manual clock starting at the given instant.
- state() - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
The current state, computed fresh on each call: for
CircuitState.Open, the returnedremainingWaitreflects the time left until a HalfOpen test call is attempted, not the originally configuredwaitDurationInOpenState. - State(String, CircuitBreakerSnapshot.Phase) - Constructor for record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.State
-
Creates an instance of a
Staterecord class. - Succeeded(String, Duration) - Constructor for record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Succeeded
-
Creates an instance of a
Succeededrecord class. - Succeeded(Instant, String, Duration) - Constructor for record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Succeeded
-
Creates an instance of a
Succeededrecord class. - SUCCEEDED - Enum constant in enum class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.AbandonedOutcome
- Success(String, int) - Constructor for record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Success
-
Creates an instance of a
Successrecord class. - Success(Instant, String, int) - Constructor for record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Success
-
Creates an instance of a
Successrecord class. - Success(T) - Constructor for record class io.github.teceli.resiliencia.core.api.Outcome.Success
-
Creates an instance of a
Successrecord class. - successes() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.HalfOpen
-
Returns the value of the
successesrecord component. - successful() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.CallRecorded
-
Returns the value of the
successfulrecord component. - successfulTestCalls() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.ClosedFromHalfOpen
-
Returns the value of the
successfulTestCallsrecord component. - suggestedFix() - Method in exception class io.github.teceli.resiliencia.compose.InvalidPolicyException
-
A human-readable suggestion for how to fix the invalid configuration.
- suggestedFix() - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Returns the value of the
suggestedFixrecord component. - systemClock() - Static method in interface io.github.teceli.resiliencia.core.spi.Clock
-
The default clock, backed by the system wall clock and
Thread.sleep(long).
T
- TimedOut(String) - Constructor for record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.TimedOut
-
Creates an instance of a
TimedOutrecord class. - TimedOut(Duration) - Constructor for record class io.github.teceli.resiliencia.core.api.Outcome.TimedOut
-
Creates an instance of a
TimedOutrecord class. - TimedOut(Instant, String, Duration) - Constructor for record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.TimedOut
-
Creates an instance of a
TimedOutrecord class. - timeout() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.TimedOut
-
Returns the value of the
timeoutrecord component. - timeout() - Method in exception class io.github.teceli.resiliencia.core.api.ResilientTimeoutException
-
The configured timeout that was exceeded.
- timeout() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Returns the value of the
timeoutrecord component. - timeout() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.TimedOut
-
Returns the value of the
timeoutrecord component. - Timeout<T> - Record Class in io.github.teceli.resiliencia.patterns.timeout
-
Timeout pattern: execute an operation on a virtual thread and bound how long the caller waits for it.
- Timeout(String, Duration, boolean, List<ResilienceEvent.Listener>, Clock) - Constructor for record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Creates an instance of a
Timeoutrecord class. - TIMEOUT - Enum constant in enum class io.github.teceli.resiliencia.core.api.PatternKind
- TimeoutCounters - Interface in io.github.teceli.resiliencia.metrics.timeout
-
Counter/timer-worthy occurrences emitted by Timeout.
- TimeoutCounters.Abandoned - Record Class in io.github.teceli.resiliencia.metrics.timeout
- TimeoutCounters.AbandonedOutcome - Enum Class in io.github.teceli.resiliencia.metrics.timeout
- TimeoutCounters.Failed - Record Class in io.github.teceli.resiliencia.metrics.timeout
- TimeoutCounters.Succeeded - Record Class in io.github.teceli.resiliencia.metrics.timeout
- TimeoutCounters.TimedOut - Record Class in io.github.teceli.resiliencia.metrics.timeout
- TimeoutEvent - Interface in io.github.teceli.resiliencia.patterns.timeout
-
Events emitted by the Timeout pattern.
- TimeoutEvent.AbandonedWorkerFailed - Record Class in io.github.teceli.resiliencia.patterns.timeout
-
The abandoned worker (interrupted or left running past the timeout) eventually failed.
- TimeoutEvent.AbandonedWorkerSucceeded - Record Class in io.github.teceli.resiliencia.patterns.timeout
-
The abandoned worker (interrupted or left running past the timeout) eventually succeeded.
- TimeoutEvent.Failed - Record Class in io.github.teceli.resiliencia.patterns.timeout
- TimeoutEvent.Succeeded - Record Class in io.github.teceli.resiliencia.patterns.timeout
- TimeoutEvent.TimedOut - Record Class in io.github.teceli.resiliencia.patterns.timeout
- timestamp() - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Returns the value of the
timestamprecord component. - timestamp() - Method in interface io.github.teceli.resiliencia.core.spi.ResilienceEvent
- timestamp() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Finished
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Permitted
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Rejected
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Closed
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.HalfOpened
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Opened
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Rejected
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Permitted
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Rejected
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.AttemptFailed
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Exhausted
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Interrupted
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Rejected
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Success
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerFailed
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerSucceeded
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Failed
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Succeeded
-
Returns the value of the
timestamprecord component. - timestamp() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.TimedOut
-
Returns the value of the
timestamprecord component. - to() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Transition
-
Returns the value of the
torecord component. - toString() - Method in record class io.github.teceli.resiliencia.compose.PolicyValidationWarning
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.Failure
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.Success
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.TimedOut
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Call
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadSnapshot.ActiveCalls
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.CallRecorded
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.ClosedFromHalfOpen
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Rejected
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Transition
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.FailureRate
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.State
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.policy.PolicyCounters.ValidationWarning
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Call
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterSnapshot.RemainingPermits
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.AttemptFailed
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Exhausted
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Interrupted
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Rejected
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Success
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Abandoned
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Failed
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.Succeeded
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.TimedOut
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Finished
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Permitted
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.bulkhead.BulkheadEvent.Rejected
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.CallRecorded
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Closed
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.HalfOpened
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Opened
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Rejected
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Closed
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.HalfOpen
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitState.Open
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Permitted
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiterEvent.Rejected
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.AttemptFailed
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Exhausted
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Interrupted
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Rejected
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Success
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerFailed
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.AbandonedWorkerSucceeded
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Failed
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.Succeeded
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.teceli.resiliencia.patterns.timeout.TimeoutEvent.TimedOut
-
Returns a string representation of this record class.
- totalAttempts() - Method in record class io.github.teceli.resiliencia.metrics.retry.RetryCounters.Success
-
Returns the value of the
totalAttemptsrecord component. - totalAttempts() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Exhausted
-
Returns the value of the
totalAttemptsrecord component. - totalAttempts() - Method in record class io.github.teceli.resiliencia.patterns.retry.RetryEvent.Success
-
Returns the value of the
totalAttemptsrecord component. - Transition(String, CircuitBreakerSnapshot.Phase, CircuitBreakerEvent.Reason) - Constructor for record class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerCounters.Transition
-
Creates an instance of a
Transitionrecord class.
U
- useOptimumOrder(Resilient<T>...) - Static method in class io.github.teceli.resiliencia.compose.Policy
-
Create a policy from the given patterns, composed in the library's optimum order regardless of the order they are passed in — outermost to innermost: RateLimiter, CircuitBreaker, Bulkhead, Retry, Timeout.
V
- ValidationWarning(PatternKind, PatternKind) - Constructor for record class io.github.teceli.resiliencia.metrics.policy.PolicyCounters.ValidationWarning
-
Creates an instance of a
ValidationWarningrecord class. - value() - Method in record class io.github.teceli.resiliencia.core.api.Outcome.Success
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class io.github.teceli.resiliencia.core.api.PatternKind
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Outcome
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.Phase
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Outcome
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.AbandonedOutcome
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.teceli.resiliencia.opentelemetry.DurationInstrumentationMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Reason
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.RejectingPhase
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.teceli.resiliencia.core.api.PatternKind
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.teceli.resiliencia.metrics.bulkhead.BulkheadCounters.Outcome
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.teceli.resiliencia.metrics.circuitbreaker.CircuitBreakerSnapshot.Phase
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.teceli.resiliencia.metrics.ratelimiter.RateLimiterCounters.Outcome
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.teceli.resiliencia.metrics.timeout.TimeoutCounters.AbandonedOutcome
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.teceli.resiliencia.opentelemetry.DurationInstrumentationMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.Reason
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreakerEvent.RejectingPhase
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- withBackoffMultiplier(double) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Factor each backoff delay is multiplied by after every failed attempt, producing exponential growth from
Retry.withInitialDelay(long). - withCancelOnTimeout(boolean) - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Whether the operation's virtual thread is interrupted when the deadline passes.
- withClock(Clock) - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
-
Use a custom
Clockinstead of the system clock for event timestamps. - withClock(Clock) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Use a custom
Clockinstead of the system clock, e.g. a manual/virtual clock in tests to make wait-duration and half-open transition assertions deterministic and instant. - withClock(Clock) - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
Use a custom
Clockinstead of the system clock, e.g. a manual/virtual clock in tests to make window and wait assertions deterministic and instant. - withClock(Clock) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Use a custom
Clockinstead of the system clock, e.g. a manual/virtual clock in tests to make backoff assertions deterministic and instant. - withClock(Clock) - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Use a custom
Clockinstead of the system clock for event timestamps. - withFailureRateThreshold(double) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Fraction of recorded calls that must fail, once the sliding window is full, to open the circuit.
- withIgnoreOn(List<Class<? extends Throwable>>) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Exception types that are never recorded as failures, even if also matched by
CircuitBreaker.withRecordOn(java.util.List<java.lang.Class<? extends java.lang.Throwable>>). - withInitialDelay(long) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Delay before the first retry attempt.
- withJitter(double) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Randomize each backoff delay uniformly within
[delay * (1 - factor), delay * (1 + factor)]to spread out retries from many clients that failed at the same moment (thundering herd). - withLimit(int) - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
Maximum number of calls allowed per
period. - withListener(ResilienceEvent.Listener) - Method in class io.github.teceli.resiliencia.compose.Policy
-
Add a listener notified of every
PolicyValidationWarningemitted by this instance. - withListener(ResilienceEvent.Listener) - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
-
Add a listener notified of every
BulkheadEventemitted by this instance. - withListener(ResilienceEvent.Listener) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Add a listener notified of every
CircuitBreakerEventemitted by this instance. - withListener(ResilienceEvent.Listener) - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
Add a listener notified of every
RateLimiterEventemitted by this instance. - withListener(ResilienceEvent.Listener) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Add a listener notified of every
RetryEventemitted by this instance. - withListener(ResilienceEvent.Listener) - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
Add a listener notified of every
TimeoutEventemitted by this instance. - withMaxAttempts(int) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Maximum number of attempts, including the first one —
withMaxAttempts(1)disables retrying entirely. - withMaxConcurrentCalls(int) - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
-
Maximum number of calls allowed to execute concurrently.
- withMaxDelay(long) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Cap every backoff delay (including the initial one, after jitter) at the given value, preventing unbounded exponential growth.
- withMaxWait(Duration) - Method in class io.github.teceli.resiliencia.patterns.bulkhead.Bulkhead
-
How long an excess call may wait for a permit before being rejected.
- withMaxWait(Duration) - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
How long an excess call may wait for the next window before being rejected.
- withOnCall(Runnable) - Method in class io.github.teceli.resiliencia.test.FakeResilient
-
Run the given hook each time this fake executes, before the operation — useful for recording execution order across a chain of fakes.
- withOverallDeadline(long) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Bound the total wall-clock time this retry loop is willing to spend across all attempts and backoff waits, measured from the first attempt.
- withPatternKind(PatternKind) - Method in class io.github.teceli.resiliencia.test.FakeResilient
- withPatternName(String) - Method in class io.github.teceli.resiliencia.test.FakeResilient
- withPeriod(Duration) - Method in class io.github.teceli.resiliencia.patterns.ratelimiter.RateLimiter
-
Length of the fixed window over which
limitcalls are allowed. - withPermittedCallsInHalfOpenState(int) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Number of test calls allowed through while HalfOpen.
- withRecordOn(List<Class<? extends Throwable>>) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Exception types that count as failures.
- withRecordOnResult(Predicate<T>) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Predicate evaluated against a successful return value to record it as a failure anyway, even though no exception was thrown — e.g. an HTTP client returning a 200 with an error body.
- withShouldRetry(Predicate<Throwable>) - Method in record class io.github.teceli.resiliencia.patterns.retry.Retry
-
Decide, for each thrown exception, whether it is worth retrying.
- withSlidingWindowSize(int) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Number of most recent calls used to compute the failure and slow-call rates.
- withSlowCallDurationThreshold(Duration) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
What counts as a slow call.
- withSlowCallRateThreshold(double) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
Fraction of recorded calls that must exceed
CircuitBreaker.withSlowCallDurationThreshold(java.time.Duration), once the sliding window is full, to open the circuit. - withTimeout(Duration) - Method in record class io.github.teceli.resiliencia.patterns.timeout.Timeout
-
How long the caller waits before the operation is considered timed out.
- withWaitDurationInOpenState(Duration) - Method in class io.github.teceli.resiliencia.patterns.circuitbreaker.CircuitBreaker
-
How long the circuit stays Open before moving to HalfOpen to try test calls again.
All Classes and Interfaces|All Packages|Serialized Form