Class AnalyticsEndpoint
java.lang.Object
com.couchbase.client.core.state.AbstractStateMachine<LifecycleState>
com.couchbase.client.core.endpoint.AbstractEndpoint
com.couchbase.client.core.endpoint.analytics.AnalyticsEndpoint
- All Implemented Interfaces:
Endpoint
,Stateful<LifecycleState>
public class AnalyticsEndpoint extends AbstractEndpoint
This endpoint defines the pipeline for analytics requests and responses.
- Since:
- 1.4.3
- Author:
- Michael Nitschinger
-
Field Summary
Fields inherited from class com.couchbase.client.core.endpoint.AbstractEndpoint
FORCE_DNS_LOOKUP_ON_RECONNECT
-
Constructor Summary
Constructors Constructor Description AnalyticsEndpoint(String hostname, String bucket, String password, int port, CoreContext ctx)
AnalyticsEndpoint(String hostname, String bucket, String username, String password, int port, CoreContext ctx)
-
Method Summary
Modifier and Type Method Description protected void
customEndpointHandlers(ChannelPipeline pipeline)
Add custom endpoint handlers to theChannelPipeline
.Methods inherited from class com.couchbase.client.core.endpoint.AbstractEndpoint
bucket, connect, connect, context, diagnostics, disconnect, doConnect, environment, isFree, lastConnectedAt, lastResponse, logIdent, notifyChannelInactive, notifyResponseDecoded, password, remoteAddress, responseBuffer, send, setLastKeepAliveLatency, signalConfigReload, username
Methods inherited from class com.couchbase.client.core.state.AbstractStateMachine
hasSubscribers, isState, state, states, transitionState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.couchbase.client.core.state.Stateful
hasSubscribers, isState, state, states
-
Constructor Details
-
AnalyticsEndpoint
public AnalyticsEndpoint(String hostname, String bucket, String password, int port, CoreContext ctx) -
AnalyticsEndpoint
public AnalyticsEndpoint(String hostname, String bucket, String username, String password, int port, CoreContext ctx)
-
-
Method Details
-
customEndpointHandlers
Description copied from class:AbstractEndpoint
Add custom endpoint handlers to theChannelPipeline
. This method needs to be implemented by the actual endpoint implementations to add specific handlers to the pipeline depending on the endpoint type and intended behavior.- Specified by:
customEndpointHandlers
in classAbstractEndpoint
- Parameters:
pipeline
- the pipeline where to add handlers.
-