Package | Description |
---|---|
com.netflix.hystrix |
Core functionality of Hystrix including the HystrixCommand and HystrixCollapser to be extended from.
|
com.netflix.hystrix.exception |
Custom exception implementations.
|
com.netflix.hystrix.strategy.executionhook |
Strategy definition for execution hook.
|
Modifier and Type | Interface and Description |
---|---|
interface |
HystrixExecutable<R>
Common interface for executables (
HystrixCommand and HystrixCollapser ) so client code can treat them the same and combine in typed collections if desired. |
interface |
HystrixObservable<R>
Common interface for executables that implement the Observable methods
HystrixObservable.observe() and HystrixObservable.toObservable() so client code can treat them the same and combine in typed collections if desired. |
Modifier and Type | Class and Description |
---|---|
class |
HystrixCollapser<BatchReturnType,ResponseType,RequestArgumentType>
Collapse multiple requests into a single
HystrixCommand execution based on a time window and optionally a max batch size. |
class |
HystrixCommand<R>
Used to wrap code that will execute potentially risky functionality (typically meaning a service call over the network)
with fault and latency tolerance, statistics and performance metrics capture, circuit breaker and bulkhead functionality.
|
class |
HystrixObservableCollapser<K,BatchReturnType,ResponseType,RequestArgumentType>
Collapse multiple requests into a single
HystrixCommand execution based on a time window and optionally a max batch size. |
class |
HystrixObservableCommand<R>
Used to wrap code that will execute potentially risky functionality (typically meaning a service call over the network)
with fault and latency tolerance, statistics and performance metrics capture, circuit breaker and bulkhead functionality.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends HystrixInvokable> |
HystrixRuntimeException.getImplementingClass()
The implementing class of the
HystrixCommand . |
Constructor and Description |
---|
HystrixRuntimeException(HystrixRuntimeException.FailureType failureCause,
Class<? extends HystrixInvokable> commandClass,
String message,
Exception cause,
Throwable fallbackException) |
HystrixRuntimeException(HystrixRuntimeException.FailureType failureCause,
Class<? extends HystrixInvokable> commandClass,
String message,
Throwable cause,
Throwable fallbackException) |
Modifier and Type | Method and Description |
---|---|
<T> void |
HystrixCommandExecutionHook.onCacheHit(HystrixInvokable<T> commandInstance)
Invoked when the command response is found in the
HystrixRequestCache . |
<T> T |
HystrixCommandExecutionHook.onComplete(HystrixInvokable<T> commandInstance,
T response)
Deprecated.
|
<T> T |
HystrixCommandExecutionHook.onEmit(HystrixInvokable<T> commandInstance,
T value)
Invoked when
HystrixInvokable emits a value. |
<T> Exception |
HystrixCommandExecutionHook.onError(HystrixInvokable<T> commandInstance,
HystrixRuntimeException.FailureType failureType,
Exception e)
Invoked when
HystrixInvokable fails with an Exception. |
<T> T |
HystrixCommandExecutionHook.onExecutionEmit(HystrixInvokable<T> commandInstance,
T value)
Invoked when the user-defined execution method in
HystrixInvokable emits a value. |
<T> Exception |
HystrixCommandExecutionHook.onExecutionError(HystrixInvokable<T> commandInstance,
Exception e)
Invoked when the user-defined execution method in
HystrixInvokable fails with an Exception. |
<T> void |
HystrixCommandExecutionHook.onExecutionStart(HystrixInvokable<T> commandInstance)
Invoked when the user-defined execution method in
HystrixInvokable starts. |
<T> void |
HystrixCommandExecutionHook.onExecutionSuccess(HystrixInvokable<T> commandInstance)
Invoked when the user-defined execution method in
HystrixInvokable completes successfully. |
<T> T |
HystrixCommandExecutionHook.onFallbackEmit(HystrixInvokable<T> commandInstance,
T value)
Invoked when the fallback method in
HystrixInvokable emits a value. |
<T> Exception |
HystrixCommandExecutionHook.onFallbackError(HystrixInvokable<T> commandInstance,
Exception e)
Invoked when the fallback method in
HystrixInvokable fails with an Exception. |
<T> void |
HystrixCommandExecutionHook.onFallbackStart(HystrixInvokable<T> commandInstance)
Invoked when the fallback method in
HystrixInvokable starts. |
<T> void |
HystrixCommandExecutionHook.onFallbackSuccess(HystrixInvokable<T> commandInstance)
Invoked when the user-defined execution method in
HystrixInvokable completes successfully. |
<T> T |
HystrixCommandExecutionHook.onFallbackSuccess(HystrixInvokable<T> commandInstance,
T fallbackResponse)
Deprecated.
|
<T> Exception |
HystrixCommandExecutionHook.onRunError(HystrixInvokable<T> commandInstance,
Exception e)
Deprecated.
|
<T> void |
HystrixCommandExecutionHook.onRunStart(HystrixInvokable<T> commandInstance)
Deprecated.
|
<T> T |
HystrixCommandExecutionHook.onRunSuccess(HystrixInvokable<T> commandInstance,
T response)
Deprecated.
|
<T> void |
HystrixCommandExecutionHook.onStart(HystrixInvokable<T> commandInstance)
Invoked before
HystrixInvokable begins executing. |
<T> void |
HystrixCommandExecutionHook.onSuccess(HystrixInvokable<T> commandInstance)
Invoked when
HystrixInvokable finishes a successful execution. |
<T> void |
HystrixCommandExecutionHook.onThreadComplete(HystrixInvokable<T> commandInstance)
Invoked at completion of thread execution when
HystrixCommand is executed using HystrixCommandProperties.ExecutionIsolationStrategy.THREAD . |
<T> void |
HystrixCommandExecutionHook.onThreadStart(HystrixInvokable<T> commandInstance)
Invoked at start of thread execution when
HystrixCommand is executed using HystrixCommandProperties.ExecutionIsolationStrategy.THREAD . |
Copyright © 2015. All Rights Reserved.