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, statespublic QueryEndpoint(ServiceContext ctx, String hostname, int port)
protected PipelineInitializer pipelineInitializer()
BaseEndpointpipelineInitializer in class BaseEndpointpublic void disconnect()
EndpointEndpoint 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 Endpointdisconnect in class BaseEndpoint@Stability.Internal public void markRequestCompletion()
BaseEndpointWe 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 BaseEndpointCopyright © 2024 Couchbase, Inc.. All rights reserved.