Class CommandFetchModComments
java.lang.Object
com.netflix.hystrix.HystrixCommand<T>
com.github.twitch4j.graphql.command.BaseCommand<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
com.github.twitch4j.graphql.command.CommandFetchModComments
- All Implemented Interfaces:
com.netflix.hystrix.HystrixExecutable<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
,com.netflix.hystrix.HystrixInvokable<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
,com.netflix.hystrix.HystrixInvokableInfo<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
,com.netflix.hystrix.HystrixObservable<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
public class CommandFetchModComments
extends BaseCommand<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.netflix.hystrix.HystrixCommand
com.netflix.hystrix.HystrixCommand.Setter
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.netflix.hystrix.HystrixCircuitBreaker
protected static ConcurrentHashMap<com.netflix.hystrix.HystrixCommandKey,
Boolean> protected final com.netflix.hystrix.HystrixCommandGroupKey
protected final com.netflix.hystrix.HystrixCommandKey
protected long
protected AtomicReference<com.netflix.hystrix.AbstractCommand.CommandState>
protected final com.netflix.hystrix.strategy.concurrency.HystrixConcurrencyStrategy
protected final com.netflix.hystrix.HystrixRequestLog
protected rx.functions.Action0
protected final com.netflix.hystrix.strategy.eventnotifier.HystrixEventNotifier
protected final com.netflix.hystrix.strategy.executionhook.HystrixCommandExecutionHook
protected com.netflix.hystrix.ExecutionResult
protected com.netflix.hystrix.ExecutionResult
protected final com.netflix.hystrix.AbstractCommand.TryableSemaphore
protected static final ConcurrentHashMap<String,
com.netflix.hystrix.AbstractCommand.TryableSemaphore> protected final com.netflix.hystrix.AbstractCommand.TryableSemaphore
protected static final ConcurrentHashMap<String,
com.netflix.hystrix.AbstractCommand.TryableSemaphore> protected final AtomicReference<com.netflix.hystrix.AbstractCommand.TimedOutStatus>
protected boolean
protected final com.netflix.hystrix.HystrixCommandMetrics
protected final com.netflix.hystrix.HystrixCommandProperties
protected final com.netflix.hystrix.HystrixRequestCache
protected final com.netflix.hystrix.HystrixThreadPool
protected final com.netflix.hystrix.HystrixThreadPoolKey
protected 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
ConstructorDescriptionCommandFetchModComments
(@NonNull com.apollographql.apollo.ApolloClient apolloClient, @NonNull String channelId, @NonNull String targetId, @Nullable String after) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected Throwable
decomposeException
(Exception arg0) protected String
com.netflix.hystrix.HystrixCommandGroupKey
com.netflix.hystrix.HystrixCommandKey
long
com.netflix.hystrix.ExecutionResult.EventCounts
protected Exception
List<com.netflix.hystrix.HystrixEventType>
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore
int
protected com.netflix.hystrix.AbstractCommand.TryableSemaphore
protected com.apollographql.apollo.ApolloCall<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
Abstract GraphQL Callprotected String
com.netflix.hystrix.HystrixCommandMetrics
int
int
int
com.netflix.hystrix.HystrixCollapserKey
com.netflix.hystrix.HystrixCommandProperties
com.netflix.hystrix.HystrixThreadPoolKey
protected void
handleThreadEnd
(com.netflix.hystrix.AbstractCommand<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data> arg0) boolean
boolean
boolean
boolean
protected boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
rx.Observable<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
observe()
protected boolean
shouldNotBeWrapped
(Throwable arg0) protected boolean
rx.Observable<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
Methods inherited from class com.github.twitch4j.graphql.command.BaseCommand
run
Methods inherited from class com.netflix.hystrix.HystrixCommand
commandIsScalar, execute, getExecutionObservable, getFallback, getFallbackMethodName, getFallbackObservable, isFallbackUserDefined, queue
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.netflix.hystrix.HystrixExecutable
observe
Methods 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, isSuccessfulExecution
Methods 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
-
CommandFetchModComments
public CommandFetchModComments(@NonNull @NonNull com.apollographql.apollo.ApolloClient apolloClient, @NonNull @NonNull String channelId, @NonNull @NonNull String targetId, @Nullable @Nullable String after) Constructor- Parameters:
apolloClient
- Apollo ClientchannelId
- The id of the channel where the moderator comment should be queriedtargetId
- The id of the target user of the moderator commentafter
- Cursor for pagination
-
-
Method Details
-
getGraphQLCall
protected com.apollographql.apollo.ApolloCall<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data> getGraphQLCall()Description copied from class:BaseCommand
Abstract GraphQL Call- Specified by:
getGraphQLCall
in classBaseCommand<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data>
- Returns:
- ApolloCall
-
observe
public rx.Observable<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data> observe()- Specified by:
observe
in interfacecom.netflix.hystrix.HystrixObservable<R extends Object>
-
toObservable
public rx.Observable<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.Data> toObservable()- Specified by:
toObservable
in interfacecom.netflix.hystrix.HystrixObservable<R extends Object>
-
shouldNotBeWrapped
-
handleThreadEnd
protected void handleThreadEnd(com.netflix.hystrix.AbstractCommand<com.github.twitch4j.graphql.internal.FetchModCommentsQuery.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:
getCommandGroup
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getCommandKey
public com.netflix.hystrix.HystrixCommandKey getCommandKey()- Specified by:
getCommandKey
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getThreadPoolKey
public com.netflix.hystrix.HystrixThreadPoolKey getThreadPoolKey()- Specified by:
getThreadPoolKey
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getMetrics
public com.netflix.hystrix.HystrixCommandMetrics getMetrics()- Specified by:
getMetrics
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getProperties
public com.netflix.hystrix.HystrixCommandProperties getProperties()- Specified by:
getProperties
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
decomposeException
-
getCacheKey
-
getPublicCacheKey
- Specified by:
getPublicCacheKey
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isRequestCachingEnabled
protected boolean isRequestCachingEnabled() -
getLogMessagePrefix
-
isCircuitBreakerOpen
public boolean isCircuitBreakerOpen()- Specified by:
isCircuitBreakerOpen
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isExecutionComplete
public boolean isExecutionComplete()- Specified by:
isExecutionComplete
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isExecutedInThread
public boolean isExecutedInThread()- Specified by:
isExecutedInThread
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isSuccessfulExecution
public boolean isSuccessfulExecution()- Specified by:
isSuccessfulExecution
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isFailedExecution
public boolean isFailedExecution()- Specified by:
isFailedExecution
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getFailedExecutionException
- Specified by:
getFailedExecutionException
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getExecutionException
-
isResponseFromFallback
public boolean isResponseFromFallback()- Specified by:
isResponseFromFallback
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseTimedOut
public boolean isResponseTimedOut()- Specified by:
isResponseTimedOut
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseShortCircuited
public boolean isResponseShortCircuited()- Specified by:
isResponseShortCircuited
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseFromCache
public boolean isResponseFromCache()- Specified by:
isResponseFromCache
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseSemaphoreRejected
public boolean isResponseSemaphoreRejected()- Specified by:
isResponseSemaphoreRejected
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseThreadPoolRejected
public boolean isResponseThreadPoolRejected()- Specified by:
isResponseThreadPoolRejected
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
isResponseRejected
public boolean isResponseRejected()- Specified by:
isResponseRejected
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getExecutionEvents
- Specified by:
getExecutionEvents
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getNumberEmissions
public int getNumberEmissions()- Specified by:
getNumberEmissions
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getNumberFallbackEmissions
public int getNumberFallbackEmissions()- Specified by:
getNumberFallbackEmissions
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getNumberCollapsed
public int getNumberCollapsed()- Specified by:
getNumberCollapsed
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getOriginatingCollapserKey
public com.netflix.hystrix.HystrixCollapserKey getOriginatingCollapserKey()- Specified by:
getOriginatingCollapserKey
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getExecutionTimeInMilliseconds
public int getExecutionTimeInMilliseconds()- Specified by:
getExecutionTimeInMilliseconds
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getCommandRunStartTimeInNanos
public long getCommandRunStartTimeInNanos()- Specified by:
getCommandRunStartTimeInNanos
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getEventCounts
public com.netflix.hystrix.ExecutionResult.EventCounts getEventCounts()- Specified by:
getEventCounts
in interfacecom.netflix.hystrix.HystrixInvokableInfo<R extends Object>
-
getExceptionFromThrowable
-