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
All Methods Instance Methods Concrete Methods 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, id
-
Methods inherited from class com.couchbase.client.core.cnc.AbstractContext
exportAsMap, exportAsString, toString
-
-
-
-
Constructor Detail
-
EndpointContext
public EndpointContext(EndpointContext ctx)
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 Detail
-
injectExportableParams
public void injectExportableParams(Map<String,Object> input)
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
public CircuitBreaker circuitBreaker()
-
localSocket
public Optional<HostAndPort> localSocket()
-
remoteSocket
public HostAndPort remoteSocket()
-
serviceType
public ServiceType serviceType()
-
-