Endpoints¶
Endpoints
is an abstraction of API endpoints.
Contract (Subset)¶
Creating QueryPublisher¶
CompletableFuture<QueryPublisher> createQueryPublisher(
String sql,
Map<String, Object> properties,
Map<String, Object> sessionVariables,
Map<String, Object> requestProperties,
Context context, WorkerExecutor workerExecutor,
ApiSecurityContext apiSecurityContext,
MetricsCallbackHolder metricsCallbackHolder,
Optional<Boolean> isInternalRequest)
Used when:
ServerVerticle
is requested to handle /query-stream and /query REST endpoints
Creating InsertsStreamSubscriber¶
CompletableFuture<InsertsStreamSubscriber> createInsertsSubscriber(
String target,
JsonObject properties,
Subscriber<InsertResult> acksSubscriber,
Context context,
WorkerExecutor workerExecutor,
ApiSecurityContext apiSecurityContext)
Used when:
ServerVerticle
is requested to handle /inserts-stream REST endpoint
executeClusterStatus¶
CompletableFuture<EndpointResponse> executeClusterStatus(
ApiSecurityContext apiSecurityContext)
Used when:
ServerVerticle
is requested to handle /clusterStatus
Executing KsqlRequest¶
CompletableFuture<EndpointResponse> executeKsqlRequest(
KsqlRequest request,
WorkerExecutor workerExecutor,
ApiSecurityContext apiSecurityContext)
Used when:
ServerVerticle
is requested to handle a KsqlRequest
Executing Query Request¶
CompletableFuture<EndpointResponse> executeQueryRequest(
KsqlRequest request, WorkerExecutor workerExecutor,
CompletableFuture<Void> connectionClosedFuture, ApiSecurityContext apiSecurityContext,
Optional<Boolean> isInternalRequest,
KsqlMediaType mediaType,
MetricsCallbackHolder metricsCallbackHolder,
Context context)
Used when:
ServerVerticle
is requested to handle a query request
executeWebsocketStream¶
void executeWebsocketStream(
ServerWebSocket webSocket,
MultiMap requstParams,
WorkerExecutor workerExecutor,
ApiSecurityContext apiSecurityContext,
Context context)
Used when:
ServerVerticle
is requested to handleWebsocket (forGET /ws/query
HTTP requests)