public class RequestStack
extends java.lang.Object
| Constructor and Description |
|---|
RequestStack() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExecution(graphql.execution.ExecutionId executionId)
Creates a call stack for an associated id.
|
boolean |
allFetchesHappened(graphql.execution.ExecutionId executionId,
int level)
Get the all fetches happened value for an execution at a specific level.
|
boolean |
allOnFieldCallsHappened(graphql.execution.ExecutionId executionId,
int level)
Get the all on field calls happened for an exectuion at a specific level.
|
boolean |
allReady() |
void |
allReset()
Removes all dispatch status.
|
boolean |
allStrategyCallsHappened(graphql.execution.ExecutionId executionId,
int level)
Get the all strategy calls happened value for an exectuion at a specific level.
|
void |
clearAndMarkCurrentLevelAsReady(graphql.execution.ExecutionId executionId,
int level)
Clear and mark current level as ready for an execution.
|
boolean |
contains(graphql.execution.ExecutionId executionId)
Returns if this RequestStack is managing an execution for the supplied id.
|
boolean |
dispatchIfNotDispatchedBefore(graphql.execution.ExecutionId executionId,
int level)
Get the dispatch if not dispatched before value of a specific level.
|
void |
increaseExpectedFetchCount(graphql.execution.ExecutionId executionId,
int curLevel,
int fieldCount)
Increases the expected fetch count for an execution.
|
void |
increaseExpectedStrategyCalls(graphql.execution.ExecutionId executionId,
int curLevel,
int expectedStrategyCalls)
Increases expected strategy calls for an execution at a specified level.
|
void |
increaseFetchCount(graphql.execution.ExecutionId executionId,
int level)
Increment the fetch count for an execution at a specific level.
|
void |
increaseHappenedOnFieldValueCalls(graphql.execution.ExecutionId executionId,
int curLevel)
Increments happened on field value calls for an execution at a specified level.
|
void |
increaseHappenedStrategyCalls(graphql.execution.ExecutionId executionId,
int curLevel)
Increments happened strategy calls for an execution at specified level.
|
void |
removeExecution(graphql.execution.ExecutionId executionId)
Removes any state associated with an id.
|
void |
setStatus(graphql.execution.ExecutionId executionId,
boolean toState)
Sets the status indicating if a specific execution is ready for dispatching.
|
public void setStatus(graphql.execution.ExecutionId executionId,
boolean toState)
executionId - must be an active executiontoState - if ready to dispatchpublic boolean allReady()
public void allReset()
public boolean contains(graphql.execution.ExecutionId executionId)
executionId - no restrictionspublic void removeExecution(graphql.execution.ExecutionId executionId)
executionId - no restrictionspublic void addExecution(graphql.execution.ExecutionId executionId)
executionId - can not already be managed by this RequestStackpublic void increaseExpectedFetchCount(graphql.execution.ExecutionId executionId,
int curLevel,
int fieldCount)
executionId - must be managed by this RequestStackcurLevel - the level to increase the expected countfieldCount - the amount to increase the expected amountpublic void increaseHappenedStrategyCalls(graphql.execution.ExecutionId executionId,
int curLevel)
executionId - must be managed by this RequestStackcurLevel - level to incrementpublic void increaseHappenedOnFieldValueCalls(graphql.execution.ExecutionId executionId,
int curLevel)
executionId - must be managed by this RequestStackcurLevel - level to incrementpublic void increaseExpectedStrategyCalls(graphql.execution.ExecutionId executionId,
int curLevel,
int expectedStrategyCalls)
executionId - must be managed by this RequestStackcurLevel - level to increaseexpectedStrategyCalls - number to increment bypublic boolean allFetchesHappened(graphql.execution.ExecutionId executionId,
int level)
executionId - must be managed by this RequestStacklevel - the level to get the value ofpublic boolean allOnFieldCallsHappened(graphql.execution.ExecutionId executionId,
int level)
executionId - must be managed by this RequestStacklevel - the level to get the value ofpublic boolean allStrategyCallsHappened(graphql.execution.ExecutionId executionId,
int level)
executionId - must be managed by this RequestStacklevel - the level to get the value ofpublic boolean dispatchIfNotDispatchedBefore(graphql.execution.ExecutionId executionId,
int level)
executionId - must be managed by this RequestStacklevel - the level to get the value ofpublic void increaseFetchCount(graphql.execution.ExecutionId executionId,
int level)
executionId - must be managed by this RequestStacklevel - the level to incrementpublic void clearAndMarkCurrentLevelAsReady(graphql.execution.ExecutionId executionId,
int level)
executionId - must be managed by this RequestStacklevel - the level to clear and mark