Class CommandUnfollowUser
java.lang.Object
com.netflix.hystrix.HystrixCommand<T>
com.github.twitch4j.graphql.command.BaseCommand<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>
com.github.twitch4j.graphql.command.CommandUnfollowUser
- All Implemented Interfaces:
com.netflix.hystrix.HystrixExecutable<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>,com.netflix.hystrix.HystrixInvokable<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>,com.netflix.hystrix.HystrixInvokableInfo<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>,com.netflix.hystrix.HystrixObservable<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>
public class CommandUnfollowUser extends BaseCommand<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>
Unfollow User
-
Nested Class Summary
Nested classes/interfaces inherited from class com.netflix.hystrix.HystrixCommand
com.netflix.hystrix.HystrixCommand.Setter -
Field Summary
Fields Modifier and Type Field Description protected com.netflix.hystrix.HystrixCircuitBreakercircuitBreakerprotected static java.util.concurrent.ConcurrentHashMap<com.netflix.hystrix.HystrixCommandKey,java.lang.Boolean>commandContainsFallbackprotected com.netflix.hystrix.HystrixCommandGroupKeycommandGroupprotected com.netflix.hystrix.HystrixCommandKeycommandKeyprotected longcommandStartTimestampprotected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.CommandState>commandStateprotected com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategyconcurrencyStrategyprotected com.netflix.hystrix.HystrixRequestLogcurrentRequestLogprotected rx.functions.Action0endCurrentThreadExecutingCommandprotected com.netflix.hystrix.strategy.eventnotifier.HystrixEventNotifiereventNotifierprotected com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHookexecutionHookprotected com.netflix.hystrix.ExecutionResultexecutionResultprotected com.netflix.hystrix.ExecutionResultexecutionResultAtTimeOfCancellationprotected com.netflix.hystrix.AbstractCommand.TryableSemaphoreexecutionSemaphoreOverrideprotected static java.util.concurrent.ConcurrentHashMap<java.lang.String,com.netflix.hystrix.AbstractCommand.TryableSemaphore>executionSemaphorePerCircuitprotected com.netflix.hystrix.AbstractCommand.TryableSemaphorefallbackSemaphoreOverrideprotected static java.util.concurrent.ConcurrentHashMap<java.lang.String,com.netflix.hystrix.AbstractCommand.TryableSemaphore>fallbackSemaphorePerCircuitprotected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.TimedOutStatus>isCommandTimedOutprotected booleanisResponseFromCacheprotected com.netflix.hystrix.HystrixCommandMetricsmetricsprotected com.netflix.hystrix.HystrixCommandPropertiespropertiesprotected com.netflix.hystrix.HystrixRequestCacherequestCacheprotected com.netflix.hystrix.HystrixThreadPoolthreadPoolprotected com.netflix.hystrix.HystrixThreadPoolKeythreadPoolKeyprotected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.ThreadState>threadStateprotected java.util.concurrent.atomic.AtomicReference<java.lang.ref.Reference<com.netflix.hystrix.util.HystrixTimer.TimerListener>>timeoutTimerFields inherited from class com.github.twitch4j.graphql.command.BaseCommand
apolloClient -
Constructor Summary
Constructors Constructor Description CommandUnfollowUser(com.apollographql.apollo.ApolloClient apolloClient, java.lang.Long targetUserId) -
Method Summary
Modifier and Type Method Description protected java.lang.ThrowabledecomposeException(java.lang.Exception arg0)protected java.lang.StringgetCacheKey()com.netflix.hystrix.HystrixCommandGroupKeygetCommandGroup()com.netflix.hystrix.HystrixCommandKeygetCommandKey()longgetCommandRunStartTimeInNanos()com.netflix.hystrix.ExecutionResult.EventCountsgetEventCounts()protected java.lang.ExceptiongetExceptionFromThrowable(java.lang.Throwable arg0)java.util.List<com.netflix.hystrix.HystrixEventType>getExecutionEvents()java.lang.ThrowablegetExecutionException()protected com.netflix.hystrix.AbstractCommand.TryableSemaphoregetExecutionSemaphore()intgetExecutionTimeInMilliseconds()java.lang.ThrowablegetFailedExecutionException()protected com.netflix.hystrix.AbstractCommand.TryableSemaphoregetFallbackSemaphore()protected com.apollographql.apollo.ApolloCall<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>getGraphQLCall()Abstract GraphQL Callprotected java.lang.StringgetLogMessagePrefix()com.netflix.hystrix.HystrixCommandMetricsgetMetrics()intgetNumberCollapsed()intgetNumberEmissions()intgetNumberFallbackEmissions()com.netflix.hystrix.HystrixCollapserKeygetOriginatingCollapserKey()com.netflix.hystrix.HystrixCommandPropertiesgetProperties()java.lang.StringgetPublicCacheKey()com.netflix.hystrix.HystrixThreadPoolKeygetThreadPoolKey()protected voidhandleThreadEnd(com.netflix.hystrix.AbstractCommand<com.github.twitch4j.graphql.internal.UnfollowMutation.Data> arg0)booleanisCircuitBreakerOpen()booleanisExecutedInThread()booleanisExecutionComplete()booleanisFailedExecution()protected booleanisRequestCachingEnabled()booleanisResponseFromCache()booleanisResponseFromFallback()booleanisResponseRejected()booleanisResponseSemaphoreRejected()booleanisResponseShortCircuited()booleanisResponseThreadPoolRejected()booleanisResponseTimedOut()booleanisSuccessfulExecution()rx.Observable<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>observe()protected booleanshouldNotBeWrapped(java.lang.Throwable arg0)protected booleanshouldOutputOnNextEvents()rx.Observable<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>toObservable()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 java.util.concurrent.ConcurrentHashMap<java.lang.String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> fallbackSemaphorePerCircuit -
executionSemaphoreOverride
protected final com.netflix.hystrix.AbstractCommand.TryableSemaphore executionSemaphoreOverride -
executionSemaphorePerCircuit
protected static final java.util.concurrent.ConcurrentHashMap<java.lang.String,com.netflix.hystrix.AbstractCommand.TryableSemaphore> executionSemaphorePerCircuit -
timeoutTimer
protected final java.util.concurrent.atomic.AtomicReference<java.lang.ref.Reference<com.netflix.hystrix.util.HystrixTimer.TimerListener>> timeoutTimer -
commandState
protected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.CommandState> commandState -
threadState
protected java.util.concurrent.atomic.AtomicReference<com.netflix.hystrix.AbstractCommand.ThreadState> 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 java.util.concurrent.atomic.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 java.util.concurrent.ConcurrentHashMap<com.netflix.hystrix.HystrixCommandKey,java.lang.Boolean> commandContainsFallback
-
-
Constructor Details
-
CommandUnfollowUser
public CommandUnfollowUser(com.apollographql.apollo.ApolloClient apolloClient, java.lang.Long targetUserId)
-
-
Method Details
-
getGraphQLCall
protected com.apollographql.apollo.ApolloCall<com.github.twitch4j.graphql.internal.UnfollowMutation.Data> getGraphQLCall()Description copied from class:BaseCommandAbstract GraphQL Call- Specified by:
getGraphQLCallin classBaseCommand<com.github.twitch4j.graphql.internal.UnfollowMutation.Data>- Returns:
- ApolloCall
-
observe
public rx.Observable<com.github.twitch4j.graphql.internal.UnfollowMutation.Data> observe()- Specified by:
observein interfacecom.netflix.hystrix.HystrixObservable<R extends java.lang.Object>
-
toObservable
public rx.Observable<com.github.twitch4j.graphql.internal.UnfollowMutation.Data> toObservable()- Specified by:
toObservablein interfacecom.netflix.hystrix.HystrixObservable<R extends java.lang.Object>
-
shouldNotBeWrapped
protected boolean shouldNotBeWrapped(java.lang.Throwable arg0) -
handleThreadEnd
protected void handleThreadEnd(com.netflix.hystrix.AbstractCommand<com.github.twitch4j.graphql.internal.UnfollowMutation.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 java.lang.Object>
-
getCommandKey
public com.netflix.hystrix.HystrixCommandKey getCommandKey()- Specified by:
getCommandKeyin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getThreadPoolKey
public com.netflix.hystrix.HystrixThreadPoolKey getThreadPoolKey()- Specified by:
getThreadPoolKeyin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getMetrics
public com.netflix.hystrix.HystrixCommandMetrics getMetrics()- Specified by:
getMetricsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getProperties
public com.netflix.hystrix.HystrixCommandProperties getProperties()- Specified by:
getPropertiesin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
decomposeException
protected java.lang.Throwable decomposeException(java.lang.Exception arg0) -
getCacheKey
protected java.lang.String getCacheKey() -
getPublicCacheKey
public java.lang.String getPublicCacheKey()- Specified by:
getPublicCacheKeyin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isRequestCachingEnabled
protected boolean isRequestCachingEnabled() -
getLogMessagePrefix
protected java.lang.String getLogMessagePrefix() -
isCircuitBreakerOpen
public boolean isCircuitBreakerOpen()- Specified by:
isCircuitBreakerOpenin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isExecutionComplete
public boolean isExecutionComplete()- Specified by:
isExecutionCompletein interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isExecutedInThread
public boolean isExecutedInThread()- Specified by:
isExecutedInThreadin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isSuccessfulExecution
public boolean isSuccessfulExecution()- Specified by:
isSuccessfulExecutionin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isFailedExecution
public boolean isFailedExecution()- Specified by:
isFailedExecutionin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getFailedExecutionException
public java.lang.Throwable getFailedExecutionException()- Specified by:
getFailedExecutionExceptionin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getExecutionException
public java.lang.Throwable getExecutionException() -
isResponseFromFallback
public boolean isResponseFromFallback()- Specified by:
isResponseFromFallbackin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isResponseTimedOut
public boolean isResponseTimedOut()- Specified by:
isResponseTimedOutin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isResponseShortCircuited
public boolean isResponseShortCircuited()- Specified by:
isResponseShortCircuitedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isResponseFromCache
public boolean isResponseFromCache()- Specified by:
isResponseFromCachein interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isResponseSemaphoreRejected
public boolean isResponseSemaphoreRejected()- Specified by:
isResponseSemaphoreRejectedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isResponseThreadPoolRejected
public boolean isResponseThreadPoolRejected()- Specified by:
isResponseThreadPoolRejectedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
isResponseRejected
public boolean isResponseRejected()- Specified by:
isResponseRejectedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getExecutionEvents
public java.util.List<com.netflix.hystrix.HystrixEventType> getExecutionEvents()- Specified by:
getExecutionEventsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getNumberEmissions
public int getNumberEmissions()- Specified by:
getNumberEmissionsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getNumberFallbackEmissions
public int getNumberFallbackEmissions()- Specified by:
getNumberFallbackEmissionsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getNumberCollapsed
public int getNumberCollapsed()- Specified by:
getNumberCollapsedin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getOriginatingCollapserKey
public com.netflix.hystrix.HystrixCollapserKey getOriginatingCollapserKey()- Specified by:
getOriginatingCollapserKeyin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getExecutionTimeInMilliseconds
public int getExecutionTimeInMilliseconds()- Specified by:
getExecutionTimeInMillisecondsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getCommandRunStartTimeInNanos
public long getCommandRunStartTimeInNanos()- Specified by:
getCommandRunStartTimeInNanosin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getEventCounts
public com.netflix.hystrix.ExecutionResult.EventCounts getEventCounts()- Specified by:
getEventCountsin interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends java.lang.Object>
-
getExceptionFromThrowable
protected java.lang.Exception getExceptionFromThrowable(java.lang.Throwable arg0)
-