All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.servlet.internal.ExecutionResultHandler Maven / Gradle / Ivy

There is a newer version: 6.1.3
Show newest version
package graphql.servlet.internal;

import graphql.ExecutionResult;

import java.util.function.BiConsumer;
import java.util.function.Consumer;

/**
 * @author Andrew Potter
 */
public interface ExecutionResultHandler extends BiConsumer {
    @Override
    default void accept(ExecutionResult executionResult, Boolean hasNext) {
        try {
            handle(executionResult, hasNext);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

    void handle(ExecutionResult result, Boolean hasNext) throws Exception;
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy