Class QueryEndpoint
java.lang.Object
com.couchbase.client.core.endpoint.BaseEndpoint
com.couchbase.client.core.endpoint.QueryEndpoint
- All Implemented Interfaces:
Endpoint
,Stateful<EndpointState>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Instruct thisEndpoint
to disconnect.void
Called from the event loop handlers to mark a request as being completed.void
This method is called from inside the channel to tell the endpoint hat it got inactive.protected PipelineInitializer
Returns the initialize which adds endpoint-specific handlers to the pipeline.Methods inherited from class com.couchbase.client.core.endpoint.BaseEndpoint
channelFutureIntoMono, connect, context, decrementOutstandingRequests, diagnostics, freeToWrite, internalDiagnostics, lastConnectAttemptFailure, lastConnectedAt, lastResponseReceived, outstandingRequests, pipelined, receivedDisconnectSignal, remoteAddress, remoteHostname, remotePort, send, state, states
-
Constructor Details
-
QueryEndpoint
-
-
Method Details
-
pipelineInitializer
Description copied from class:BaseEndpoint
Returns the initialize which adds endpoint-specific handlers to the pipeline.- Specified by:
pipelineInitializer
in classBaseEndpoint
-
disconnect
public void disconnect()Description copied from interface:Endpoint
Instruct thisEndpoint
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.
- Specified by:
disconnect
in interfaceEndpoint
- Overrides:
disconnect
in classBaseEndpoint
-
markRequestCompletion
Description copied from class:BaseEndpoint
Called from the event loop handlers to mark a request as being completed.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.
- Overrides:
markRequestCompletion
in classBaseEndpoint
-
notifyChannelInactive
Description copied from class:BaseEndpoint
This method is called from inside the channel to tell the endpoint hat it got inactive.The endpoint needs to perform certain steps when the channel is inactive so that it quickly tries to reconnect, as long as it should (i.e. don't do it if already disconnected)
- Overrides:
notifyChannelInactive
in classBaseEndpoint
-