forked from graphql-java/graphql-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request graphql-java#3447 from graphql-java/native-dispatc…
…h-strategy Native DataLoader dispatch strategy without Instrumentation
- Loading branch information
Showing
35 changed files
with
492 additions
and
844 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/main/java/graphql/execution/DataLoaderDispatchStrategy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package graphql.execution; | ||
|
||
import graphql.Internal; | ||
import graphql.schema.DataFetcher; | ||
|
||
import java.util.List; | ||
import java.util.concurrent.CompletableFuture; | ||
|
||
@Internal | ||
public interface DataLoaderDispatchStrategy { | ||
|
||
DataLoaderDispatchStrategy NO_OP = new DataLoaderDispatchStrategy() { | ||
}; | ||
|
||
|
||
default void executionStrategy(ExecutionContext executionContext, ExecutionStrategyParameters parameters) { | ||
|
||
} | ||
|
||
default void executionStrategyOnFieldValuesInfo(List<FieldValueInfo> fieldValueInfoList, ExecutionStrategyParameters parameters) { | ||
|
||
} | ||
|
||
default void executionStrategyOnFieldValuesException(Throwable t, ExecutionStrategyParameters parameters) { | ||
|
||
} | ||
|
||
|
||
default void executeObject(ExecutionContext executionContext, ExecutionStrategyParameters executionStrategyParameters) { | ||
|
||
} | ||
|
||
default void executeObjectOnFieldValuesInfo(List<FieldValueInfo> fieldValueInfoList, ExecutionStrategyParameters parameters) { | ||
|
||
} | ||
|
||
default void executeObjectOnFieldValuesException(Throwable t, ExecutionStrategyParameters parameters) { | ||
|
||
} | ||
|
||
default void fieldFetched(ExecutionContext executionContext, | ||
ExecutionStrategyParameters executionStrategyParameters, | ||
DataFetcher<?> dataFetcher, | ||
CompletableFuture<Object> fetchedValue) { | ||
|
||
} | ||
|
||
|
||
default DataFetcher<?> modifyDataFetcher(DataFetcher<?> dataFetcher) { | ||
return dataFetcher; | ||
} | ||
|
||
default void deferredField(ExecutionContext executionContext, MergedField currentField) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.