Package org.apache.camel.component.etcd3
Class Etcd3Configuration
java.lang.Object
org.apache.camel.component.etcd3.Etcd3Configuration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.etcd.jetcd.Client
String[]
long
long
long
io.netty.handler.ssl.SslContext
boolean
isPrefix()
void
setAuthHeaders
(Map<String, String> authHeaders) Configure the headers to be added to auth request headers.void
setAuthority
(String authority) Configure the authority used to authenticate connections to servers.void
setConnectionTimeout
(Duration connectionTimeout) Configure the connection timeout.void
setEndpoints
(String... endpoints) Configure etcd server endpoints using the IPNameResolver.void
setFromIndex
(long fromIndex) The index to watch from.void
setHeaders
(Map<String, String> headers) Configure the headers to be added to http request headers.void
setKeepAliveTime
(Duration keepAliveTime) Configure the interval for gRPC keepalives.void
setKeepAliveTimeout
(Duration keepAliveTimeout) Configure the timeout for gRPC keepalives.void
setKeyCharset
(String keyCharset) Configure the charset to use for the keys.void
setLoadBalancerPolicy
(String loadBalancerPolicy) Configure etcd load balancer policy.void
setMaxInboundMessageSize
(Integer maxInboundMessageSize) Configure the maximum message size allowed for a single gRPC frame.void
setNamespace
(String namespace) Configure the namespace of keys used.void
setPassword
(String password) Configure etcd auth password.void
setPrefix
(boolean prefix) To apply an action on all the key-value pairs whose key that starts with the target path.void
setRetryDelay
(long retryDelay) Configure the delay between retries in milliseconds.void
setRetryMaxDelay
(long retryMaxDelay) Configure the max backing off delay between retries in milliseconds.void
setRetryMaxDuration
(Duration retryMaxDuration) Configure the retries max duration.void
setServicePath
(String servicePath) The path to look for service discovery.void
setSslContext
(io.netty.handler.ssl.SslContext sslContext) Configure SSL/TLS context to use instead of the system default.void
setUserName
(String userName) Configure etcd auth user.void
setValueCharset
(String valueCharset) Configure the charset to use for the values.
-
Constructor Details
-
Etcd3Configuration
public Etcd3Configuration()
-
-
Method Details
-
getEndpoints
-
setEndpoints
Configure etcd server endpoints using the IPNameResolver. -
getUserName
-
setUserName
Configure etcd auth user. -
getPassword
-
setPassword
Configure etcd auth password. -
getNamespace
-
setNamespace
Configure the namespace of keys used. "/" will be treated as no namespace. -
getSslContext
public io.netty.handler.ssl.SslContext getSslContext() -
setSslContext
public void setSslContext(io.netty.handler.ssl.SslContext sslContext) Configure SSL/TLS context to use instead of the system default. -
getLoadBalancerPolicy
-
setLoadBalancerPolicy
Configure etcd load balancer policy. -
getAuthority
-
setAuthority
Configure the authority used to authenticate connections to servers. -
getMaxInboundMessageSize
-
setMaxInboundMessageSize
Configure the maximum message size allowed for a single gRPC frame. -
getHeaders
-
setHeaders
Configure the headers to be added to http request headers. -
getAuthHeaders
-
setAuthHeaders
Configure the headers to be added to auth request headers. -
getRetryDelay
public long getRetryDelay() -
setRetryDelay
public void setRetryDelay(long retryDelay) Configure the delay between retries in milliseconds. -
getRetryMaxDelay
public long getRetryMaxDelay() -
setRetryMaxDelay
public void setRetryMaxDelay(long retryMaxDelay) Configure the max backing off delay between retries in milliseconds. -
getKeepAliveTime
-
setKeepAliveTime
Configure the interval for gRPC keepalives. The current minimum allowed by gRPC is 10 seconds. -
getKeepAliveTimeout
-
setKeepAliveTimeout
Configure the timeout for gRPC keepalives. -
getRetryMaxDuration
-
setRetryMaxDuration
Configure the retries max duration. -
getConnectionTimeout
-
setConnectionTimeout
Configure the connection timeout. -
isPrefix
public boolean isPrefix() -
setPrefix
public void setPrefix(boolean prefix) To apply an action on all the key-value pairs whose key that starts with the target path. -
getFromIndex
public long getFromIndex() -
setFromIndex
public void setFromIndex(long fromIndex) The index to watch from. -
getServicePath
-
setServicePath
The path to look for service discovery. -
getKeyCharset
-
setKeyCharset
Configure the charset to use for the keys. -
getValueCharset
-
setValueCharset
Configure the charset to use for the values. -
createClient
public io.etcd.jetcd.Client createClient()- Returns:
- a
Client
instance configured with all parameters set.
-