public class QueryEndpoint extends BaseEndpoint
Modifier and Type | Class and Description |
---|---|
static class |
QueryEndpoint.QueryPipelineInitializer |
Constructor and Description |
---|
QueryEndpoint(ServiceContext ctx,
String hostname,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Instruct this
Endpoint to disconnect. |
void |
markRequestCompletion()
Called from the event loop handlers to mark a request as being completed.
|
protected PipelineInitializer |
pipelineInitializer()
Returns the initialize which adds endpoint-specific handlers to the pipeline.
|
channelFutureIntoMono, connect, context, decrementOutstandingRequests, diagnostics, freeToWrite, internalDiagnostics, lastConnectAttemptFailure, lastConnectedAt, lastResponseReceived, notifyChannelInactive, outstandingRequests, pipelined, receivedDisconnectSignal, remoteAddress, remoteHostname, remotePort, send, state, states
public QueryEndpoint(ServiceContext ctx, String hostname, int port)
protected PipelineInitializer pipelineInitializer()
BaseEndpoint
pipelineInitializer
in class BaseEndpoint
public void disconnect()
Endpoint
Endpoint
to disconnect.
This method is async and will return immediately. Use the other methods available to inspect the current state of the endpoint, signaling potential successful disconnection attempts.
disconnect
in interface Endpoint
disconnect
in class BaseEndpoint
@Stability.Internal public void markRequestCompletion()
BaseEndpoint
We need to make this call explicitly from the outside and cannot just listen on the request response callback because with streaming responses the actual completion might happen much later.
markRequestCompletion
in class BaseEndpoint
Copyright © 2024 Couchbase, Inc.. All rights reserved.