graphql.kickstart.execution.subscriptions.SubscriptionProtocolFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-kickstart-jakarta5 Show documentation
Show all versions of graphql-java-kickstart-jakarta5 Show documentation
relay.js-compatible GraphQL servlet
The newest version!
package graphql.kickstart.execution.subscriptions;
import java.util.function.Consumer;
/** @author Andrew Potter */
public abstract class SubscriptionProtocolFactory {
private final String protocol;
protected SubscriptionProtocolFactory(String protocol) {
this.protocol = protocol;
}
public String getProtocol() {
return protocol;
}
public abstract Consumer createConsumer(SubscriptionSession session);
public void shutdown() {
// do nothing
}
}