public class RestClientRibbonCommand extends com.netflix.hystrix.HystrixCommand<org.springframework.http.client.ClientHttpResponse> implements RibbonCommand
Modifier and Type | Class and Description |
---|---|
protected static class |
com.netflix.hystrix.AbstractCommand.CachedObservableOriginal<R> |
protected static class |
com.netflix.hystrix.AbstractCommand.CachedObservableResponse<R> |
protected static class |
com.netflix.hystrix.AbstractCommand.ObservableCommand<R> |
protected static class |
com.netflix.hystrix.AbstractCommand.TimedOutStatus |
Modifier and Type | Field and Description |
---|---|
protected com.netflix.hystrix.HystrixCircuitBreaker |
circuitBreaker |
protected com.netflix.hystrix.HystrixCommandGroupKey |
commandGroup |
protected com.netflix.hystrix.HystrixCommandKey |
commandKey |
protected com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy |
concurrencyStrategy |
protected com.netflix.hystrix.HystrixRequestLog |
currentRequestLog |
protected AtomicReference<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.AbstractCommand.TryableSemaphore |
executionSemaphoreOverride |
protected static ConcurrentHashMap<String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> |
executionSemaphorePerCircuit |
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore |
fallbackSemaphoreOverride |
protected static ConcurrentHashMap<String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> |
fallbackSemaphorePerCircuit |
protected AtomicReference<com.netflix.hystrix.AbstractCommand.TimedOutStatus> |
isCommandTimedOut |
protected AtomicBoolean |
isExecutionComplete |
protected com.netflix.hystrix.HystrixCommandMetrics |
metrics |
protected com.netflix.hystrix.HystrixCommandProperties |
properties |
protected com.netflix.hystrix.HystrixRequestCache |
requestCache |
protected AtomicBoolean |
started |
protected com.netflix.hystrix.HystrixThreadPool |
threadPool |
protected com.netflix.hystrix.HystrixThreadPoolKey |
threadPoolKey |
protected AtomicReference<Reference<com.netflix.hystrix.util.HystrixTimer.TimerListener>> |
timeoutTimer |
Constructor and Description |
---|
RestClientRibbonCommand(com.netflix.niws.client.http.RestClient restClient,
com.netflix.client.http.HttpRequest.Verb verb,
String uri,
Boolean retryable,
org.springframework.util.MultiValueMap<String,String> headers,
org.springframework.util.MultiValueMap<String,String> params,
InputStream requestEntity) |
RestClientRibbonCommand(String commandKey,
com.netflix.niws.client.http.RestClient restClient,
com.netflix.client.http.HttpRequest.Verb verb,
String uri,
Boolean retryable,
org.springframework.util.MultiValueMap<String,String> headers,
org.springframework.util.MultiValueMap<String,String> params,
InputStream requestEntity) |
Modifier and Type | Method and Description |
---|---|
protected void |
customizeRequest(com.netflix.client.http.HttpRequest.Builder requestBuilder) |
protected RuntimeException |
decomposeException(Exception arg0) |
protected org.springframework.http.client.ClientHttpResponse |
forward() |
protected String |
getCacheKey() |
protected Exception |
getExceptionFromThrowable(Throwable arg0) |
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore |
getExecutionSemaphore() |
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore |
getFallbackSemaphore() |
protected org.springframework.util.MultiValueMap<String,String> |
getHeaders() |
protected String |
getLogMessagePrefix() |
protected org.springframework.util.MultiValueMap<String,String> |
getParams() |
protected InputStream |
getRequestEntity() |
protected com.netflix.niws.client.http.RestClient |
getRestClient() |
protected Boolean |
getRetryable() |
protected static com.netflix.hystrix.HystrixCommand.Setter |
getSetter(String commandKey) |
protected URI |
getUri() |
protected com.netflix.client.http.HttpRequest.Verb |
getVerb() |
protected void |
handleThreadEnd() |
protected boolean |
isRequestCachingEnabled() |
protected void |
recordExecutedCommand() |
protected org.springframework.http.client.ClientHttpResponse |
run() |
protected boolean |
shouldOutputOnNextEvents() |
execute, getExecutionObservable, getFallback, getFallbackMethodName, getFallbackObservable, queue
protected 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 ConcurrentHashMap<String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> fallbackSemaphorePerCircuit
protected final com.netflix.hystrix.AbstractCommand.TryableSemaphore executionSemaphoreOverride
protected static final ConcurrentHashMap<String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> executionSemaphorePerCircuit
protected final AtomicReference<Reference<com.netflix.hystrix.util.HystrixTimer.TimerListener>> timeoutTimer
protected AtomicBoolean started
protected volatile com.netflix.hystrix.ExecutionResult executionResult
protected final AtomicReference<com.netflix.hystrix.AbstractCommand.TimedOutStatus> isCommandTimedOut
protected final AtomicBoolean isExecutionComplete
protected final AtomicReference<rx.functions.Action0> endCurrentThreadExecutingCommand
protected final com.netflix.hystrix.HystrixRequestCache requestCache
protected final com.netflix.hystrix.HystrixRequestLog currentRequestLog
public RestClientRibbonCommand(com.netflix.niws.client.http.RestClient restClient, com.netflix.client.http.HttpRequest.Verb verb, String uri, Boolean retryable, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.util.MultiValueMap<String,String> params, InputStream requestEntity) throws URISyntaxException
URISyntaxException
public RestClientRibbonCommand(String commandKey, com.netflix.niws.client.http.RestClient restClient, com.netflix.client.http.HttpRequest.Verb verb, String uri, Boolean retryable, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.util.MultiValueMap<String,String> params, InputStream requestEntity) throws URISyntaxException
URISyntaxException
protected static com.netflix.hystrix.HystrixCommand.Setter getSetter(String commandKey)
protected org.springframework.http.client.ClientHttpResponse run() throws Exception
run
in class com.netflix.hystrix.HystrixCommand<org.springframework.http.client.ClientHttpResponse>
Exception
protected org.springframework.http.client.ClientHttpResponse forward() throws Exception
Exception
protected void customizeRequest(com.netflix.client.http.HttpRequest.Builder requestBuilder)
protected InputStream getRequestEntity()
protected com.netflix.niws.client.http.RestClient getRestClient()
protected Boolean getRetryable()
protected URI getUri()
protected com.netflix.client.http.HttpRequest.Verb getVerb()
protected void handleThreadEnd()
protected boolean shouldOutputOnNextEvents()
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore getFallbackSemaphore()
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore getExecutionSemaphore()
protected void recordExecutedCommand()
protected RuntimeException decomposeException(Exception arg0)
protected String getCacheKey()
protected boolean isRequestCachingEnabled()
protected String getLogMessagePrefix()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.