public class HystrixCommandOnThread extends com.netflix.hystrix.HystrixCommand<reactor.core.publisher.Mono<java.lang.Void>> implements Command
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
com.netflix.hystrix.AbstractCommand.CommandState |
protected static class |
com.netflix.hystrix.AbstractCommand.ThreadState |
protected static class |
com.netflix.hystrix.AbstractCommand.TimedOutStatus |
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.netflix.hystrix.HystrixCircuitBreaker |
circuitBreaker |
protected static java.util.concurrent.ConcurrentHashMap<com.netflix.hystrix.HystrixCommandKey,java.lang.Boolean> |
commandContainsFallback |
protected com.netflix.hystrix.HystrixCommandGroupKey |
commandGroup |
protected com.netflix.hystrix.HystrixCommandKey |
commandKey |
protected long |
commandStartTimestamp |
protected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.CommandState> |
commandState |
protected com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy |
concurrencyStrategy |
protected com.netflix.hystrix.HystrixRequestLog |
currentRequestLog |
protected rx.functions.Action0 |
endCurrentThreadExecutingCommand |
protected com.netflix.hystrix.strategy.eventnotifier.HystrixEventNotifier |
eventNotifier |
protected com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHook |
executionHook |
protected com.netflix.hystrix.ExecutionResult |
executionResult |
protected com.netflix.hystrix.ExecutionResult |
executionResultAtTimeOfCancellation |
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore |
executionSemaphoreOverride |
protected static java.util.concurrent.ConcurrentHashMap<java.lang.String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> |
executionSemaphorePerCircuit |
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore |
fallbackSemaphoreOverride |
protected static java.util.concurrent.ConcurrentHashMap<java.lang.String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> |
fallbackSemaphorePerCircuit |
protected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.TimedOutStatus> |
isCommandTimedOut |
protected boolean |
isResponseFromCache |
protected com.netflix.hystrix.HystrixCommandMetrics |
metrics |
protected com.netflix.hystrix.HystrixCommandProperties |
properties |
protected com.netflix.hystrix.HystrixRequestCache |
requestCache |
protected com.netflix.hystrix.HystrixThreadPool |
threadPool |
protected com.netflix.hystrix.HystrixThreadPoolKey |
threadPoolKey |
protected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.ThreadState> |
threadState |
protected java.util.concurrent.atomic.AtomicReference<java.lang.ref.Reference<com.netflix.hystrix.util.HystrixTimer.TimerListener>> |
timeoutTimer |
| 构造器和说明 |
|---|
HystrixCommandOnThread(com.netflix.hystrix.HystrixCommand.Setter setter,
org.springframework.web.server.ServerWebExchange exchange,
org.apache.shenyu.plugin.api.ShenyuPluginChain chain,
java.lang.String callBackUri)
Instantiates a new Http command.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cleanCommand()
clean all command.
|
protected java.lang.Throwable |
decomposeException(java.lang.Exception arg0) |
rx.Observable<java.lang.Void> |
fetchObservable()
wrap fetch Observable in
HystrixCommand and HystrixCommandOnThread. |
protected java.lang.String |
getCacheKey() |
java.net.URI |
getCallBackUri()
get call back uri.
|
protected java.lang.Exception |
getExceptionFromThrowable(java.lang.Throwable arg0) |
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore |
getExecutionSemaphore() |
protected reactor.core.publisher.Mono<java.lang.Void> |
getFallback() |
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore |
getFallbackSemaphore() |
protected java.lang.String |
getLogMessagePrefix() |
protected void |
handleThreadEnd(com.netflix.hystrix.AbstractCommand<R> arg0) |
protected boolean |
isRequestCachingEnabled() |
void |
removeCommandKey(java.lang.String commandKey)
removeCommandKey rule data.
|
protected reactor.core.publisher.Mono<java.lang.Void> |
run() |
protected boolean |
shouldNotBeWrapped(java.lang.Throwable arg0) |
protected boolean |
shouldOutputOnNextEvents() |
commandIsScalar, execute, getExecutionObservable, getFallbackMethodName, getFallbackObservable, isFallbackUserDefined, queueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCircuitBreakerOpen, withoutFallbackprotected final com.netflix.hystrix.HystrixCircuitBreaker circuitBreaker
protected final com.netflix.hystrix.HystrixThreadPool threadPool
protected final com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey
protected final com.netflix.hystrix.HystrixCommandProperties properties
protected final com.netflix.hystrix.HystrixCommandMetrics metrics
protected final com.netflix.hystrix.HystrixCommandKey commandKey
protected final com.netflix.hystrix.HystrixCommandGroupKey commandGroup
protected final com.netflix.hystrix.strategy.eventnotifier.HystrixEventNotifier eventNotifier
protected final com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy concurrencyStrategy
protected final com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHook executionHook
protected final com.netflix.hystrix.AbstractCommand.TryableSemaphore fallbackSemaphoreOverride
protected static final java.util.concurrent.ConcurrentHashMap<java.lang.String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> fallbackSemaphorePerCircuit
protected final com.netflix.hystrix.AbstractCommand.TryableSemaphore executionSemaphoreOverride
protected static final java.util.concurrent.ConcurrentHashMap<java.lang.String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> executionSemaphorePerCircuit
protected final java.util.concurrent.atomic.AtomicReference<java.lang.ref.Reference<com.netflix.hystrix.util.HystrixTimer.TimerListener>> timeoutTimer
protected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.CommandState> commandState
protected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.ThreadState> threadState
protected volatile com.netflix.hystrix.ExecutionResult executionResult
protected volatile boolean isResponseFromCache
protected volatile com.netflix.hystrix.ExecutionResult executionResultAtTimeOfCancellation
protected volatile long commandStartTimestamp
protected final java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.TimedOutStatus> isCommandTimedOut
protected volatile rx.functions.Action0 endCurrentThreadExecutingCommand
protected final com.netflix.hystrix.HystrixRequestCache requestCache
protected final com.netflix.hystrix.HystrixRequestLog currentRequestLog
protected static java.util.concurrent.ConcurrentHashMap<com.netflix.hystrix.HystrixCommandKey,java.lang.Boolean> commandContainsFallback
public HystrixCommandOnThread(com.netflix.hystrix.HystrixCommand.Setter setter,
org.springframework.web.server.ServerWebExchange exchange,
org.apache.shenyu.plugin.api.ShenyuPluginChain chain,
java.lang.String callBackUri)
setter - the setterexchange - the exchangechain - the chaincallBackUri - the call back uriprotected reactor.core.publisher.Mono<java.lang.Void> run()
run 在类中 com.netflix.hystrix.HystrixCommand<reactor.core.publisher.Mono<java.lang.Void>>protected reactor.core.publisher.Mono<java.lang.Void> getFallback()
getFallback 在类中 com.netflix.hystrix.HystrixCommand<reactor.core.publisher.Mono<java.lang.Void>>public rx.Observable<java.lang.Void> fetchObservable()
CommandHystrixCommand and HystrixCommandOnThread.fetchObservable 在接口中 CommandObservable<R> that executes and calls back with the result of command execution
or a fallback if the command fails for any reason.public java.net.URI getCallBackUri()
CommandgetCallBackUri 在接口中 Commandpublic void removeCommandKey(java.lang.String commandKey)
CommandremoveCommandKey 在接口中 CommandcommandKey - commandKeypublic void cleanCommand()
CommandcleanCommand 在接口中 Commandprotected boolean shouldNotBeWrapped(java.lang.Throwable arg0)
protected void handleThreadEnd(com.netflix.hystrix.AbstractCommand<R> arg0)
protected boolean shouldOutputOnNextEvents()
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore getFallbackSemaphore()
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore getExecutionSemaphore()
protected java.lang.Throwable decomposeException(java.lang.Exception arg0)
protected java.lang.String getCacheKey()
protected boolean isRequestCachingEnabled()
protected java.lang.String getLogMessagePrefix()
protected java.lang.Exception getExceptionFromThrowable(java.lang.Throwable arg0)
Copyright © 2026 The Apache Software Foundation. All rights reserved.