Class DockerMcpTransport.Builder
java.lang.Object
dev.langchain4j.mcp.client.transport.docker.DockerMcpTransport.Builder
- Enclosing class:
DockerMcpTransport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiVersion(String apiVersion) attachTimeout(Duration attachTimeout) build()dockerCertPath(String dockerCertPath) dockerConfig(String dockerConfig) dockerContext(String dockerContext) dockerHost(String dockerHost) dockerTlsVerify(Boolean dockerTlsVerify) dockerTslVerify(Boolean dockerTlsVerify) Deprecated.environment(Map<String, String> environment) logEvents(boolean logEvents) logger(org.slf4j.Logger logger) registryEmail(String registryEmail) registryPassword(String registryPassword) registryUrl(String registryUrl) registryUsername(String registryUsername) responseTimeout(Duration responseTimeout) Sets how long the transport keeps the container attachment open while waiting for the server to answer a request.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dockerHost
-
dockerConfig
-
dockerContext
-
dockerCertPath
-
dockerTlsVerify
-
dockerTslVerify
Deprecated.misspelled method name, usedockerTlsVerify(Boolean)instead. -
registryEmail
-
registryUsername
-
registryPassword
-
registryUrl
-
apiVersion
-
image
-
command
-
environment
-
logEvents
-
logger
- Parameters:
logger- an alternateLoggerto be used instead of the default one provided by Langchain4J for traffic logging.- Returns:
this.
-
binds
-
attachTimeout
-
responseTimeout
Sets how long the transport keeps the container attachment open while waiting for the server to answer a request. When it expires, the pending operation fails instead of waiting forever. The default is 60 seconds. -
build
-
dockerTlsVerify(Boolean)instead.