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

graphql.kickstart.execution.subscriptions.SubscriptionProtocolFactory Maven / Gradle / Ivy

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
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy