Class ServiceContext
java.lang.Object
com.couchbase.client.core.cnc.AbstractContext
com.couchbase.client.core.CoreContext
com.couchbase.client.core.service.ServiceContext
- All Implemented Interfaces:
Context
public class ServiceContext extends CoreContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.couchbase.client.core.cnc.Context
Context.ExportFormat -
Constructor Summary
Constructors Constructor Description ServiceContext(CoreContext ctx, String remoteHostname, int remotePort, ServiceType serviceType, Optional<String> bucket) -
Method Summary
Modifier and Type Method Description Optional<String>bucket()voidinjectExportableParams(Map<String,Object> input)This method needs to be implemented by the actual context implementations to inject the params they need for exporting.StringremoteHostname()intremotePort()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
-
ServiceContext
public ServiceContext(CoreContext ctx, String remoteHostname, int remotePort, ServiceType serviceType, Optional<String> bucket)
-
-
Method Details
-
remoteHostname
-
remotePort
public int remotePort() -
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.
-
serviceType
-
bucket
-