Class CommandFetchVips
java.lang.Object
com.netflix.hystrix.HystrixCommand<T>
com.github.twitch4j.graphql.command.BaseCommand<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>
com.github.twitch4j.graphql.command.CommandFetchVips
- All Implemented Interfaces:
com.netflix.hystrix.HystrixExecutable<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>,com.netflix.hystrix.HystrixInvokable<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>,com.netflix.hystrix.HystrixInvokableInfo<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>,com.netflix.hystrix.HystrixObservable<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>
public class CommandFetchVips
extends BaseCommand<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.netflix.hystrix.HystrixCommand
com.netflix.hystrix.HystrixCommand.Setter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.netflix.hystrix.HystrixCircuitBreakerprotected static ConcurrentHashMap<com.netflix.hystrix.HystrixCommandKey,Boolean> protected final com.netflix.hystrix.HystrixCommandGroupKeyprotected final com.netflix.hystrix.HystrixCommandKeyprotected longprotected AtomicReference<com.netflix.hystrix.AbstractCommand.CommandState>protected final com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategyprotected final com.netflix.hystrix.HystrixRequestLogprotected rx.functions.Action0protected final com.netflix.hystrix.strategy.eventnotifier.HystrixEventNotifierprotected final com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHookprotected com.netflix.hystrix.ExecutionResultprotected com.netflix.hystrix.ExecutionResultprotected final com.netflix.hystrix.AbstractCommand.TryableSemaphoreprotected static final ConcurrentHashMap<String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> protected final com.netflix.hystrix.AbstractCommand.TryableSemaphoreprotected static final ConcurrentHashMap<String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> protected final AtomicReference<com.netflix.hystrix.AbstractCommand.TimedOutStatus>protected booleanprotected final com.netflix.hystrix.HystrixCommandMetricsprotected final com.netflix.hystrix.HystrixCommandPropertiesprotected final com.netflix.hystrix.HystrixRequestCacheprotected final com.netflix.hystrix.HystrixThreadPoolprotected final com.netflix.hystrix.HystrixThreadPoolKeyprotected AtomicReference<com.netflix.hystrix.AbstractCommand.ThreadState>protected final AtomicReference<Reference<com.netflix.hystrix.util.HystrixTimer.TimerListener>>Fields inherited from class com.github.twitch4j.graphql.command.BaseCommand
apolloClient -
Constructor Summary
ConstructorsConstructorDescriptionCommandFetchVips(com.apollographql.apollo.ApolloClient apolloClient, String channelLogin, String cursor, Integer limit) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected ThrowabledecomposeException(Exception arg0) protected Stringcom.netflix.hystrix.HystrixCommandGroupKeycom.netflix.hystrix.HystrixCommandKeylongcom.netflix.hystrix.ExecutionResult.EventCountsprotected ExceptionList<com.netflix.hystrix.HystrixEventType>protected com.netflix.hystrix.AbstractCommand.TryableSemaphoreintprotected com.netflix.hystrix.AbstractCommand.TryableSemaphoreprotected com.apollographql.apollo.ApolloCall<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>Abstract GraphQL Callprotected Stringcom.netflix.hystrix.HystrixCommandMetricsintintintcom.netflix.hystrix.HystrixCollapserKeycom.netflix.hystrix.HystrixCommandPropertiescom.netflix.hystrix.HystrixThreadPoolKeyprotected voidhandleThreadEnd(com.netflix.hystrix.AbstractCommand<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data> arg0) booleanbooleanbooleanbooleanprotected booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanrx.Observable<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>observe()protected booleanshouldNotBeWrapped(Throwable arg0) protected booleanrx.Observable<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>Methods inherited from class com.github.twitch4j.graphql.command.BaseCommand
runMethods inherited from class com.netflix.hystrix.HystrixCommand
commandIsScalar, execute, getExecutionObservable, getFallback, getFallbackMethodName, getFallbackObservable, isFallbackUserDefined, queueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netflix.hystrix.HystrixExecutable
observeMethods inherited from interface com.netflix.hystrix.HystrixInvokableInfo
getCommandGroup, getCommandKey, getCommandRunStartTimeInNanos, getEventCounts, getExecutionEvents, getExecutionTimeInMilliseconds, getFailedExecutionException, getMetrics, getNumberCollapsed, getNumberEmissions, getNumberFallbackEmissions, getOriginatingCollapserKey, getProperties, getPublicCacheKey, getThreadPoolKey, isCircuitBreakerOpen, isExecutedInThread, isExecutionComplete, isFailedExecution, isResponseFromCache, isResponseFromFallback, isResponseRejected, isResponseSemaphoreRejected, isResponseShortCircuited, isResponseThreadPoolRejected, isResponseTimedOut, isSuccessfulExecutionMethods inherited from interface com.netflix.hystrix.HystrixObservable
observe, toObservable
-
Field Details
-
circuitBreaker
protected final com.netflix.hystrix.HystrixCircuitBreaker circuitBreaker -
threadPool
protected final com.netflix.hystrix.HystrixThreadPool threadPool -
threadPoolKey
protected final com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey -
properties
protected final com.netflix.hystrix.HystrixCommandProperties properties -
metrics
protected final com.netflix.hystrix.HystrixCommandMetrics metrics -
commandKey
protected final com.netflix.hystrix.HystrixCommandKey commandKey -
commandGroup
protected final com.netflix.hystrix.HystrixCommandGroupKey commandGroup -
eventNotifier
protected final com.netflix.hystrix.strategy.eventnotifier.HystrixEventNotifier eventNotifier -
concurrencyStrategy
protected final com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy concurrencyStrategy -
executionHook
protected final com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHook executionHook -
fallbackSemaphoreOverride
protected final com.netflix.hystrix.AbstractCommand.TryableSemaphore fallbackSemaphoreOverride -
fallbackSemaphorePerCircuit
protected static final ConcurrentHashMap<String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> fallbackSemaphorePerCircuit -
executionSemaphoreOverride
protected final com.netflix.hystrix.AbstractCommand.TryableSemaphore executionSemaphoreOverride -
executionSemaphorePerCircuit
protected static final ConcurrentHashMap<String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> executionSemaphorePerCircuit -
timeoutTimer
protected final AtomicReference<Reference<com.netflix.hystrix.util.HystrixTimer.TimerListener>> timeoutTimer -
commandState
-
threadState
-
executionResult
protected volatile com.netflix.hystrix.ExecutionResult executionResult -
isResponseFromCache
protected volatile boolean isResponseFromCache -
executionResultAtTimeOfCancellation
protected volatile com.netflix.hystrix.ExecutionResult executionResultAtTimeOfCancellation -
commandStartTimestamp
protected volatile long commandStartTimestamp -
isCommandTimedOut
protected final AtomicReference<com.netflix.hystrix.AbstractCommand.TimedOutStatus> isCommandTimedOut -
endCurrentThreadExecutingCommand
protected volatile rx.functions.Action0 endCurrentThreadExecutingCommand -
requestCache
protected final com.netflix.hystrix.HystrixRequestCache requestCache -
currentRequestLog
protected final com.netflix.hystrix.HystrixRequestLog currentRequestLog -
commandContainsFallback
protected static ConcurrentHashMap<com.netflix.hystrix.HystrixCommandKey,Boolean> commandContainsFallback
-
-
Constructor Details
-
CommandFetchVips
public CommandFetchVips(com.apollographql.apollo.ApolloClient apolloClient, String channelLogin, String cursor, Integer limit) Constructor- Parameters:
apolloClient- Apollo ClientchannelLogin- The login name of the channel whose vip list is being queriedcursor- Relay cursor for forward pagination (optional)limit- The maximum number of nodes to return in a single call
-
-
Method Details
-
getGraphQLCall
protected com.apollographql.apollo.ApolloCall<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data> getGraphQLCall()Description copied from class:BaseCommandAbstract GraphQL Call- Specified by:
getGraphQLCallin classBaseCommand<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data>- Returns:
- ApolloCall
-
observe
public rx.Observable<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data> observe()- Specified by:
observein interfacecom.netflix.hystrix.HystrixObservable<R extends Object>
-
toObservable
public rx.Observable<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data> toObservable()- Specified by:
toObservablein interfacecom.netflix.hystrix.HystrixObservable<R extends Object>
-
shouldNotBeWrapped
-
handleThreadEnd
protected void handleThreadEnd(com.netflix.hystrix.AbstractCommand<com.github.twitch4j.graphql.internal.FetchVipsQuery.Data> arg0) -
shouldOutputOnNextEvents
protected boolean shouldOutputOnNextEvents() -
getFallbackSemaphore
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore getFallbackSemaphore() -
getExecutionSemaphore
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore getExecutionSemaphore() -
getCommandGroup
public com.netflix.hystrix.HystrixCommandGroupKey getCommandGroup()- Specified by:
getCommandGroupin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getCommandKey
public com.netflix.hystrix.HystrixCommandKey getCommandKey()- Specified by:
getCommandKeyin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getThreadPoolKey
public com.netflix.hystrix.HystrixThreadPoolKey getThreadPoolKey()- Specified by:
getThreadPoolKeyin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getMetrics
public com.netflix.hystrix.HystrixCommandMetrics getMetrics()- Specified by:
getMetricsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getProperties
public com.netflix.hystrix.HystrixCommandProperties getProperties()- Specified by:
getPropertiesin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
decomposeException
-
getCacheKey
-
getPublicCacheKey
- Specified by:
getPublicCacheKeyin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isRequestCachingEnabled
protected boolean isRequestCachingEnabled() -
getLogMessagePrefix
-
isCircuitBreakerOpen
public boolean isCircuitBreakerOpen()- Specified by:
isCircuitBreakerOpenin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isExecutionComplete
public boolean isExecutionComplete()- Specified by:
isExecutionCompletein interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isExecutedInThread
public boolean isExecutedInThread()- Specified by:
isExecutedInThreadin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isSuccessfulExecution
public boolean isSuccessfulExecution()- Specified by:
isSuccessfulExecutionin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isFailedExecution
public boolean isFailedExecution()- Specified by:
isFailedExecutionin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getFailedExecutionException
- Specified by:
getFailedExecutionExceptionin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getExecutionException
-
isResponseFromFallback
public boolean isResponseFromFallback()- Specified by:
isResponseFromFallbackin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseTimedOut
public boolean isResponseTimedOut()- Specified by:
isResponseTimedOutin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseShortCircuited
public boolean isResponseShortCircuited()- Specified by:
isResponseShortCircuitedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseFromCache
public boolean isResponseFromCache()- Specified by:
isResponseFromCachein interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseSemaphoreRejected
public boolean isResponseSemaphoreRejected()- Specified by:
isResponseSemaphoreRejectedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseThreadPoolRejected
public boolean isResponseThreadPoolRejected()- Specified by:
isResponseThreadPoolRejectedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseRejected
public boolean isResponseRejected()- Specified by:
isResponseRejectedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getExecutionEvents
- Specified by:
getExecutionEventsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getNumberEmissions
public int getNumberEmissions()- Specified by:
getNumberEmissionsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getNumberFallbackEmissions
public int getNumberFallbackEmissions()- Specified by:
getNumberFallbackEmissionsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getNumberCollapsed
public int getNumberCollapsed()- Specified by:
getNumberCollapsedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getOriginatingCollapserKey
public com.netflix.hystrix.HystrixCollapserKey getOriginatingCollapserKey()- Specified by:
getOriginatingCollapserKeyin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getExecutionTimeInMilliseconds
public int getExecutionTimeInMilliseconds()- Specified by:
getExecutionTimeInMillisecondsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getCommandRunStartTimeInNanos
public long getCommandRunStartTimeInNanos()- Specified by:
getCommandRunStartTimeInNanosin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getEventCounts
public com.netflix.hystrix.ExecutionResult.EventCounts getEventCounts()- Specified by:
getEventCountsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getExceptionFromThrowable
-