Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
/** Interface for Endpoint. */
public interface SQLGatewayEndpoint {

    void start() throws Exception;
    
    void stop() throws Exception;
}  

/**
 * A factory for creating Endpoint from Configuration. This
 * Factory to create SQLGatewayEndpointService. factory is used with Java's Service Provider Interfaces (SPI) for discovery.
 */
public interface SQLGatewayEndpointFactory extends Factory {

    SQLGatewayEndpoint createSQLGatewayEndpoint(Context context);

    interface Context {
       	
        SQLGatewayService getSQLGatewayService();

        MetricGroup getMetricGroup();

        /** Gives read-only access to the configuration of the Endpoint. */
        ReadableConfig getConfiguration();
    }
}

...