Class EndpointContext
java.lang.Object
com.couchbase.client.core.cnc.AbstractContext
com.couchbase.client.core.CoreContext
com.couchbase.client.core.endpoint.EndpointContext
- All Implemented Interfaces:
Context
public class EndpointContext extends CoreContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Context
Context.ExportFormat -
Constructor Summary
Constructors Constructor Description EndpointContext(CoreContext ctx, HostAndPort remoteSocket, CircuitBreaker circuitBreaker, ServiceType serviceType, Optional<HostAndPort> localSocket, Optional<String> bucket, Optional<String> channelId)Creates a newEndpointContext.EndpointContext(EndpointContext ctx)Helper method to duplicate the endpoint context (useful for extension). -
Method Summary
Modifier and Type Method Description Optional<String>bucket()Optional<String>channelId()CircuitBreakercircuitBreaker()voidinjectExportableParams(Map<String,Object> input)This method needs to be implemented by the actual context implementations to inject the params they need for exporting.Optional<HostAndPort>localSocket()HostAndPortremoteSocket()ServiceTypeserviceType()Methods inherited from class com.couchbase.client.core.CoreContext
alternateAddress, alternateAddress, authenticator, core, environment, idMethods inherited from class com.couchbase.client.core.cnc.AbstractContext
exportAsString, toString
-
Constructor Details
-
EndpointContext
Helper method to duplicate the endpoint context (useful for extension).- Parameters:
ctx- the context to copy from.
-
EndpointContext
public EndpointContext(CoreContext ctx, HostAndPort remoteSocket, CircuitBreaker circuitBreaker, ServiceType serviceType, Optional<HostAndPort> localSocket, Optional<String> bucket, Optional<String> channelId)Creates a newEndpointContext.
-
-
Method Details
-
injectExportableParams
Description copied from class:AbstractContextThis method needs to be implemented by the actual context implementations to inject the params they need for exporting.- Overrides:
injectExportableParamsin classCoreContext- Parameters:
input- pass exportable params in here.
-
circuitBreaker
-
localSocket
-
remoteSocket
-
serviceType
-
bucket
-
channelId
-