public class SqlGatewayRestEndpointFactory extends Object implements SqlGatewayEndpointFactory
SqlGatewayEndpointFactory.Context
Modifier and Type | Field and Description |
---|---|
static String |
IDENTIFIER
The identifier string for
SqlGatewayRestEndpointFactory . |
Constructor and Description |
---|
SqlGatewayRestEndpointFactory() |
Modifier and Type | Method and Description |
---|---|
SqlGatewayEndpoint |
createSqlGatewayEndpoint(SqlGatewayEndpointFactory.Context context)
Creates an endpoint from the given context and endpoint options.
|
String |
factoryIdentifier()
Returns a unique identifier among same factory interfaces.
|
Set<ConfigOption<?>> |
optionalOptions()
Returns a set of
ConfigOption that an implementation of this factory consumes in
addition to Factory.requiredOptions() . |
static Configuration |
rebuildRestEndpointOptions(Map<String,String> configMap) |
Set<ConfigOption<?>> |
requiredOptions()
Returns a set of
ConfigOption that an implementation of this factory requires in
addition to Factory.optionalOptions() . |
public static final String IDENTIFIER
SqlGatewayRestEndpointFactory
.public SqlGatewayEndpoint createSqlGatewayEndpoint(SqlGatewayEndpointFactory.Context context)
SqlGatewayEndpointFactory
The endpoint options have been projected to top-level options (e.g. from endpoint.port
to port
).
createSqlGatewayEndpoint
in interface SqlGatewayEndpointFactory
public static Configuration rebuildRestEndpointOptions(Map<String,String> configMap)
public String factoryIdentifier()
Factory
For consistency, an identifier should be declared as one lower case word (e.g. kafka
). If multiple factories exist for different versions, a version should be appended
using "-" (e.g. elasticsearch-7
).
factoryIdentifier
in interface Factory
public Set<ConfigOption<?>> requiredOptions()
Factory
ConfigOption
that an implementation of this factory requires in
addition to Factory.optionalOptions()
.
See the documentation of Factory
for more information.
requiredOptions
in interface Factory
public Set<ConfigOption<?>> optionalOptions()
Factory
ConfigOption
that an implementation of this factory consumes in
addition to Factory.requiredOptions()
.
See the documentation of Factory
for more information.
optionalOptions
in interface Factory
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.