BreakStrategy
which returns true if all of the given strategies returns true.BreakStrategy
which returns true if at least one of the given strategies returns true.BreakHandler
to indicate that the
break handler failed to handle break and was not able to provide the fallback value.ReusableCircuitBreaker
.ReusableCircuitBreaker
.BreakHandler
class.ExecutionContext
.BreakHandler
.CircuitBreaker
which requires
each component (ie.ExceptionThrowingHandler
which will throw BreakHandlerException
with
given message in case "break" occurred (circuit breaker executed break handler instead of
real-method).ExceptionThrowingHandler
which will throw BreakHandlerException
with
message obtained by calling
ExceptionThrowingHandlerMessageCallback.buildMessage(Task, ExecutionContext)
.ExceptionThrowingHandler
which will throw exception of given class
with given message in case "break" occurred (circuit breaker executed break handler instead of
real-method).ExceptionThrowingHandler
which will throw exception of given class
with message obtained from given callback, in case "break" occurred (circuit breaker executed break handler
instead of real-method).Callable
only when given BreakStrategy
allows the execution at the time of call.Callable
only when given BreakStrategy
allows the execution at the time of call.BreakStrategy
and BreakHandler
given as the params.BreakStrategy
and BreakHandler
given as the params
with custom data passed as userData param.BreakHandler
class.BreakStrategy
which causes the circuit breaker to break (not execute the Task) in
case all tasks currently running inside the circuit breaker reaches the allowed maximum (defined by
maxSupportedExecutions constructor param).BreakStrategy
which causes the circuit breaker to break (not execute the Task) in
case all tasks currently running inside the circuit breaker takes long time on average.BreakHandler
which should be used to handle the break.BreakHandler
that does completely nothing.BreakHandlerFactory
which creates new instance of given BreakHandler
if it
does not exist in current execution context, otherwise returns BreakHandler
bound to current execution
context (reuses the same instance for handling subsequent calls to
BreakHandler.onBreak(ContextAwareCircuitBreaker, Task, BreakStrategy, ExecutionContext)
).BreakHandler
that always returns the value given as a parameter.CircuitBreaker
which stores its
BreakStrategy
and BreakHandler
as fields, so that there is no need to pass them each time.ReusableCircuitBreaker
.BreakHandler
which creates single instance of StatefulRetryHandler
per
execution context.BreakHandlerFactory
which creates new instance of given BreakHandler
class for
each invocation of SimpleHandlerFactory.makeHandler(Task, ExecutionContext)
.BreakStrategy
allows execution only if
there is no other execution at the moment.BreakHandler
that retries to execute given Task again.CircuitBreaker
when the call to real-method resulted in
exception.Copyright © 2017. All rights reserved.