Class FieldLevelTrackingApproach.CallStack

java.lang.Object
graphql.execution.instrumentation.dataloader.FieldLevelTrackingApproach.CallStack
All Implemented Interfaces:
InstrumentationState
Enclosing class:
FieldLevelTrackingApproach

private static class FieldLevelTrackingApproach.CallStack extends Object implements InstrumentationState
  • Field Details

    • lock

      private final LockKit.ReentrantLock lock
    • expectedFetchCountPerLevel

      private final LevelMap expectedFetchCountPerLevel
    • fetchCountPerLevel

      private final LevelMap fetchCountPerLevel
    • expectedStrategyCallsPerLevel

      private final LevelMap expectedStrategyCallsPerLevel
    • happenedStrategyCallsPerLevel

      private final LevelMap happenedStrategyCallsPerLevel
    • happenedOnFieldValueCallsPerLevel

      private final LevelMap happenedOnFieldValueCallsPerLevel
    • dispatchedLevels

      private final Set<Integer> dispatchedLevels
  • Constructor Details

    • CallStack

      CallStack()
  • Method Details

    • increaseExpectedFetchCount

      void increaseExpectedFetchCount(int level, int count)
    • increaseFetchCount

      void increaseFetchCount(int level)
    • increaseExpectedStrategyCalls

      void increaseExpectedStrategyCalls(int level, int count)
    • increaseHappenedStrategyCalls

      void increaseHappenedStrategyCalls(int level)
    • increaseHappenedOnFieldValueCalls

      void increaseHappenedOnFieldValueCalls(int level)
    • allStrategyCallsHappened

      boolean allStrategyCallsHappened(int level)
    • allOnFieldCallsHappened

      boolean allOnFieldCallsHappened(int level)
    • allFetchesHappened

      boolean allFetchesHappened(int level)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • dispatchIfNotDispatchedBefore

      public boolean dispatchIfNotDispatchedBefore(int level)
    • clearAndMarkCurrentLevelAsReady

      public void clearAndMarkCurrentLevelAsReady(int level)