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, String remoteHostname, int remotePort, CircuitBreaker circuitBreaker, ServiceType serviceType, Optional<SocketAddress> localSocket, Optional<String> bucket, Optional<String> channelId)
Creates a newEndpointContext
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
bucket()
CircuitBreaker
circuitBreaker()
protected 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<SocketAddress>
localSocket()
String
remoteHostname()
int
remotePort()
ServiceType
serviceType()
-
Methods inherited from class com.couchbase.client.core.CoreContext
core, environment, id
-
Methods inherited from class com.couchbase.client.core.cnc.AbstractContext
exportAsString, toString
-
-
-
-
Constructor Detail
-
EndpointContext
public EndpointContext(CoreContext ctx, String remoteHostname, int remotePort, CircuitBreaker circuitBreaker, ServiceType serviceType, Optional<SocketAddress> localSocket, Optional<String> bucket, Optional<String> channelId)
Creates a newEndpointContext
.- Parameters:
ctx
- the parent context to use.remoteHostname
- the remote hostname.remotePort
- the remote port.
-
-
Method Detail
-
injectExportableParams
protected void injectExportableParams(Map<String,Object> input)
Description copied from class:AbstractContext
This method needs to be implemented by the actual context implementations to inject the params they need for exporting.- Overrides:
injectExportableParams
in classCoreContext
- Parameters:
input
- pass exportable params in here.
-
remoteHostname
public String remoteHostname()
-
remotePort
public int remotePort()
-
circuitBreaker
public CircuitBreaker circuitBreaker()
-
localSocket
public Optional<SocketAddress> localSocket()
-
serviceType
public ServiceType serviceType()
-
-