
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.hystrix.Hystrix
public class Hystrix
Lifecycle management of Hystrix.
| Constructor Summary | |
|---|---|
Hystrix()
|
|
| Method Summary | |
|---|---|
static HystrixCommandKey |
getCurrentThreadExecutingCommand()
Allows a thread to query whether it's current point of execution is within the scope of a HystrixCommand. |
static void |
reset()
Reset state and release resources in use (such as thread-pools). |
static void |
reset(long time,
java.util.concurrent.TimeUnit unit)
Reset state and release resources in use (such as threadpools) and wait for completion. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Hystrix()
| Method Detail |
|---|
public static void reset()
NOTE: This can result in race conditions if HystrixCommands are concurrently being executed.
public static void reset(long time,
java.util.concurrent.TimeUnit unit)
NOTE: This can result in race conditions if HystrixCommands are concurrently being executed.
time - time to wait for thread-pools to shutdownunit - TimeUnit for timeto wait for thread-pools to shutdown
public static HystrixCommandKey getCurrentThreadExecutingCommand()
When ExecutionIsolationStrategy is THREAD then this applies to the isolation (child/worker) thread not the calling thread.
When ExecutionIsolationStrategy is SEMAPHORE this applies to the calling thread.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||