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 TypeMethodDescriptionvoidInstruct thisEndpointto disconnect.voidCalled from the event loop handlers to mark a request as being completed.voidThis method is called from inside the channel to tell the endpoint hat it got inactive.protected PipelineInitializerReturns the initialize which adds endpoint-specific handlers to the pipeline.Methods inherited from class com.couchbase.client.core.endpoint.BaseEndpoint
channelFrom, 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:BaseEndpointReturns the initialize which adds endpoint-specific handlers to the pipeline.- Specified by:
pipelineInitializerin classBaseEndpoint
-
disconnect
public void disconnect()Description copied from interface:EndpointInstruct thisEndpointto 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:
disconnectin interfaceEndpoint- Overrides:
disconnectin classBaseEndpoint
-
markRequestCompletion
Description copied from class:BaseEndpointCalled 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:
markRequestCompletionin classBaseEndpoint
-
notifyChannelInactive
Description copied from class:BaseEndpointThis 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:
notifyChannelInactivein classBaseEndpoint
-