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

no.ssb.lds.graphql.GraphQLContext Maven / Gradle / Ivy

There is a newer version: 0.16
Show newest version
package no.ssb.lds.graphql;

import io.undertow.server.HttpServerExchange;

import java.time.ZonedDateTime;

/**
 * The context object passed around in the lds graphql executions.'
 */
public interface GraphQLContext {

    // TODO: Find a better name. This clashes with graphql-java objects.
    
    /**
     * Returns the undertow server exchange that triggered the execution.
     */
    HttpServerExchange getExchange();

    /**
     * Returns the snapshot used to retrieve data from persistence
     */
    ZonedDateTime getSnapshot();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy