public class EndpointContext extends CoreContext
Context.ExportFormat| Constructor and Description |
|---|
EndpointContext(CoreContext ctx,
HostAndPort remoteSocket,
CircuitBreaker circuitBreaker,
ServiceType serviceType,
Optional<HostAndPort> localSocket,
Optional<String> bucket,
Optional<String> channelId)
Creates a new
EndpointContext. |
EndpointContext(EndpointContext ctx)
Helper method to duplicate the endpoint context (useful for extension).
|
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
bucket() |
Optional<String> |
channelId() |
CircuitBreaker |
circuitBreaker() |
void |
injectExportableParams(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() |
HostAndPort |
remoteSocket() |
ServiceType |
serviceType() |
alternateAddress, alternateAddress, authenticator, core, environment, idexportAsString, toStringpublic EndpointContext(EndpointContext ctx)
ctx - the context to copy from.public EndpointContext(CoreContext ctx, HostAndPort remoteSocket, CircuitBreaker circuitBreaker, ServiceType serviceType, Optional<HostAndPort> localSocket, Optional<String> bucket, Optional<String> channelId)
EndpointContext.public void injectExportableParams(Map<String,Object> input)
AbstractContextinjectExportableParams in class CoreContextinput - pass exportable params in here.public CircuitBreaker circuitBreaker()
public Optional<HostAndPort> localSocket()
public HostAndPort remoteSocket()
public ServiceType serviceType()
Copyright © 2021 Couchbase, Inc.. All rights reserved.