Skip navigation links
Duct Tape, 1.0.8
A B C D G I N O P R S T U V W 

A

autoResetAfter(long, TimeUnit) - Method in class org.rnorth.ducttape.circuitbreakers.BreakerBuilder
Configure the breaker to automatically reset a given time after a failure has occurred.

B

Breaker - Interface in org.rnorth.ducttape.circuitbreakers
A Circuit Breaker, per http://martinfowler.com/bliki/CircuitBreaker.html[the pattern of the same name].
BreakerBuilder - Class in org.rnorth.ducttape.circuitbreakers
BreakerBuilder A builder of Breaker instances having any combination of the following features: automatic reset after a configured period of time has passed since the last failure configurable state storage, for example for use with a distributed map implementation These features are optional; by default instances will be created with none of them.
build() - Method in class org.rnorth.ducttape.circuitbreakers.BreakerBuilder
 
build() - Method in class org.rnorth.ducttape.ratelimits.RateLimiterBuilder
Build and obtain a configured rate limiter.

C

check(String, boolean) - Static method in class org.rnorth.ducttape.Preconditions
Check that a given condition is true.

D

doWhenReady(Runnable) - Method in class org.rnorth.ducttape.ratelimits.RateLimiter
Invoke a lambda function, with Thread.sleep() being called to limit the execution rate if needed.
doWithTimeout(int, TimeUnit, Runnable) - Static method in class org.rnorth.ducttape.timeouts.Timeouts
Execute a lambda expression with a timeout.

G

getLastFailure() - Method in interface org.rnorth.ducttape.circuitbreakers.StateStore
 
getMostConsistentTime() - Method in exception org.rnorth.ducttape.inconsistents.InconsistentResultsException
 
getMostConsistentValue() - Method in exception org.rnorth.ducttape.inconsistents.InconsistentResultsException
 
getState() - Method in interface org.rnorth.ducttape.circuitbreakers.Breaker
 
getState() - Method in interface org.rnorth.ducttape.circuitbreakers.StateStore
 
getTimeSinceStart() - Method in exception org.rnorth.ducttape.inconsistents.ResultsNeverConsistentException
 
getWhenReady(Callable<T>) - Method in class org.rnorth.ducttape.ratelimits.RateLimiter
Invoke a lambda function and get the result, with Thread.sleep() being called to limit the execution rate if needed.
getWithTimeout(int, TimeUnit, Callable<T>) - Static method in class org.rnorth.ducttape.timeouts.Timeouts
Execute a lambda expression with a timeout.

I

InconsistentResultsException - Exception in org.rnorth.ducttape.inconsistents
Exception caused by a failure to obtain consistent results.
InconsistentResultsException(long, Object, long) - Constructor for exception org.rnorth.ducttape.inconsistents.InconsistentResultsException
 
Inconsistents - Class in org.rnorth.ducttape.inconsistents
Utility for calling a supplier that may take time to stabilise on a final result.
Inconsistents() - Constructor for class org.rnorth.ducttape.inconsistents.Inconsistents
 

N

newBuilder() - Static method in class org.rnorth.ducttape.circuitbreakers.BreakerBuilder
 
newBuilder() - Static method in class org.rnorth.ducttape.ratelimits.RateLimiterBuilder
Obtain a new builder instance.
NoOp() - Static method in interface org.rnorth.ducttape.circuitbreakers.Breaker
 

O

org.rnorth.ducttape - package org.rnorth.ducttape
 
org.rnorth.ducttape.circuitbreakers - package org.rnorth.ducttape.circuitbreakers
 
org.rnorth.ducttape.inconsistents - package org.rnorth.ducttape.inconsistents
 
org.rnorth.ducttape.ratelimits - package org.rnorth.ducttape.ratelimits
 
org.rnorth.ducttape.timeouts - package org.rnorth.ducttape.timeouts
 
org.rnorth.ducttape.unreliables - package org.rnorth.ducttape.unreliables
 

P

Preconditions - Class in org.rnorth.ducttape
Simple Preconditions check implementation.
Preconditions() - Constructor for class org.rnorth.ducttape.Preconditions
 

R

RateLimiter - Class in org.rnorth.ducttape.ratelimits
Base class for rate limiters.
RateLimiter() - Constructor for class org.rnorth.ducttape.ratelimits.RateLimiter
 
RateLimiterBuilder - Class in org.rnorth.ducttape.ratelimits
Builder for rate limiters.
ResultsNeverConsistentException - Exception in org.rnorth.ducttape.inconsistents
Exception caused by a failure to obtain consistent results.
ResultsNeverConsistentException(String, long) - Constructor for exception org.rnorth.ducttape.inconsistents.ResultsNeverConsistentException
 
ResultsNeverConsistentException(long) - Constructor for exception org.rnorth.ducttape.inconsistents.ResultsNeverConsistentException
 
RetryCountExceededException - Exception in org.rnorth.ducttape
Indicates repeated failure of an UnreliableSupplier
RetryCountExceededException(String, Exception) - Constructor for exception org.rnorth.ducttape.RetryCountExceededException
 
retryUntilConsistent(int, int, TimeUnit, Callable<T>) - Static method in class org.rnorth.ducttape.inconsistents.Inconsistents
Retry invocation of a supplier repeatedly until it returns a consistent result for a sufficient time period.
retryUntilSuccess(int, TimeUnit, Callable<T>) - Static method in class org.rnorth.ducttape.unreliables.Unreliables
Call a supplier repeatedly until it returns a result.
retryUntilSuccess(int, Callable<T>) - Static method in class org.rnorth.ducttape.unreliables.Unreliables
Call a supplier repeatedly until it returns a result.
retryUntilTrue(int, TimeUnit, Callable<Boolean>) - Static method in class org.rnorth.ducttape.unreliables.Unreliables
Call a callable repeatedly until it returns true.
retryUntilTrue(int, Callable<Boolean>) - Static method in class org.rnorth.ducttape.unreliables.Unreliables
Call a callable repeatedly until it returns true.

S

setLastFailure(long) - Method in interface org.rnorth.ducttape.circuitbreakers.StateStore
 
setState(State) - Method in interface org.rnorth.ducttape.circuitbreakers.StateStore
 
State - Enum in org.rnorth.ducttape.circuitbreakers
 
StateStore - Interface in org.rnorth.ducttape.circuitbreakers
An external store for state which a Breaker can use.
storeStateIn(ConcurrentMap<String, Object>, String) - Method in class org.rnorth.ducttape.circuitbreakers.BreakerBuilder
Configure the breaker to use the provided Map to store its state.
storeStateIn(StateStore) - Method in class org.rnorth.ducttape.circuitbreakers.BreakerBuilder
Configure the breaker to use the provided StateStore to store its state.

T

TimeoutException - Exception in org.rnorth.ducttape
Indicates timeout of an UnreliableSupplier
TimeoutException(String, Exception) - Constructor for exception org.rnorth.ducttape.TimeoutException
 
TimeoutException(Exception) - Constructor for exception org.rnorth.ducttape.TimeoutException
 
Timeouts - Class in org.rnorth.ducttape.timeouts
Utilities to time out on slow running code.
Timeouts() - Constructor for class org.rnorth.ducttape.timeouts.Timeouts
 
timeSource(TimeSource) - Method in class org.rnorth.ducttape.circuitbreakers.BreakerBuilder
Use a TimeSource instance to track time elapsed since last failure.
tryDo(Runnable, Runnable, Runnable) - Method in interface org.rnorth.ducttape.circuitbreakers.Breaker
Do something, unless the breaker is in a broken state, in which case perform a fallback action.
tryDo(Runnable, Runnable) - Method in interface org.rnorth.ducttape.circuitbreakers.Breaker
Do something, unless the breaker is in a broken state, in which case perform a fallback action.
tryDo(Runnable) - Method in interface org.rnorth.ducttape.circuitbreakers.Breaker
Do something, unless the breaker is in a broken state, in which case do nothing.
tryGet(Callable<T>, Runnable, Supplier<T>) - Method in interface org.rnorth.ducttape.circuitbreakers.Breaker
Get the result of something, unless the breaker is in a broken state, in which case get a fallback value.
tryGet(Callable<T>, Supplier<T>) - Method in interface org.rnorth.ducttape.circuitbreakers.Breaker
Get the result of something, unless the breaker is in a broken state, in which case get a fallback value.
tryGet(Callable<T>) - Method in interface org.rnorth.ducttape.circuitbreakers.Breaker
Get the result of something, unless the breaker is in a broken state, in which case get a fallback value.

U

Unreliables - Class in org.rnorth.ducttape.unreliables
Utilities to support automatic retry of things that may fail.
Unreliables() - Constructor for class org.rnorth.ducttape.unreliables.Unreliables
 

V

valueOf(String) - Static method in enum org.rnorth.ducttape.circuitbreakers.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.rnorth.ducttape.circuitbreakers.State
Returns an array containing the constants of this enum type, in the order they are declared.

W

withConstantThroughput() - Method in class org.rnorth.ducttape.ratelimits.RateLimiterBuilder
Configure the rate limiter to use a constant throughput strategy for rate limiting.
withRate(int, TimeUnit) - Method in class org.rnorth.ducttape.ratelimits.RateLimiterBuilder
Set the maximum rate that the limiter should allow, expressed as the number of invocations allowed in a given time period.
A B C D G I N O P R S T U V W 
Skip navigation links
Duct Tape, 1.0.8

Copyright © 2019. All rights reserved.