Class Etcd3ServiceDiscoveryFactory
- java.lang.Object
-
- org.apache.camel.component.etcd3.cloud.Etcd3ServiceDiscoveryFactory
-
- All Implemented Interfaces:
org.apache.camel.cloud.ServiceDiscoveryFactory,org.apache.camel.cloud.ServiceFactory<org.apache.camel.cloud.ServiceDiscovery>
@CloudServiceFactory("etcd-service-discovery") @Configurer public class Etcd3ServiceDiscoveryFactory extends Object implements org.apache.camel.cloud.ServiceDiscoveryFactory
-
-
Constructor Summary
Constructors Constructor Description Etcd3ServiceDiscoveryFactory()Etcd3ServiceDiscoveryFactory(Etcd3Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getAuthHeaders()StringgetAuthority()DurationgetConnectionTimeout()String[]getEndpoints()Map<String,String>getHeaders()DurationgetKeepAliveTime()DurationgetKeepAliveTimeout()StringgetKeyCharset()StringgetLoadBalancerPolicy()IntegergetMaxInboundMessageSize()StringgetNamespace()StringgetPassword()longgetRetryDelay()longgetRetryMaxDelay()DurationgetRetryMaxDuration()StringgetServicePath()io.netty.handler.ssl.SslContextgetSslContext()StringgetType()StringgetUserName()StringgetValueCharset()org.apache.camel.cloud.ServiceDiscoverynewInstance(org.apache.camel.CamelContext camelContext)voidsetAuthHeaders(Map<String,String> authHeaders)Configure the headers to be added to auth request headers.voidsetAuthority(String authority)Configure the authority used to authenticate connections to servers.voidsetConnectionTimeout(Duration connectionTimeout)Configure the connection timeout.voidsetEndpoints(String... endpoints)Configure etcd server endpoints using the IPNameResolver.voidsetHeaders(Map<String,String> headers)Configure the headers to be added to http request headers.voidsetKeepAliveTime(Duration keepAliveTime)Configure the interval for gRPC keepalives.voidsetKeepAliveTimeout(Duration keepAliveTimeout)Configure the timeout for gRPC keepalives.voidsetKeyCharset(String keyCharset)Configure the charset to use for the keys.voidsetLoadBalancerPolicy(String loadBalancerPolicy)Configure etcd load balancer policy.voidsetMaxInboundMessageSize(Integer maxInboundMessageSize)Configure the maximum message size allowed for a single gRPC frame.voidsetNamespace(String namespace)Configure the namespace of keys used.voidsetPassword(String password)Configure etcd auth password.voidsetRetryDelay(long retryDelay)Configure the delay between retries in milliseconds.voidsetRetryMaxDelay(long retryMaxDelay)Configure the max backing off delay between retries in milliseconds.voidsetRetryMaxDuration(Duration retryMaxDuration)Configure the retries max duration.voidsetServicePath(String servicePath)The path to look for service discovery.voidsetSslContext(io.netty.handler.ssl.SslContext sslContext)Configure SSL/TLS context to use instead of the system default.voidsetType(String type)Configure the type of service discovery.voidsetUserName(String userName)Configure etcd auth user.voidsetValueCharset(String valueCharset)Configure the charset to use for the values.
-
-
-
Constructor Detail
-
Etcd3ServiceDiscoveryFactory
public Etcd3ServiceDiscoveryFactory()
-
Etcd3ServiceDiscoveryFactory
public Etcd3ServiceDiscoveryFactory(Etcd3Configuration configuration)
-
-
Method Detail
-
getEndpoints
public String[] getEndpoints()
-
setEndpoints
public void setEndpoints(String... endpoints)
Configure etcd server endpoints using the IPNameResolver.
-
getUserName
public String getUserName()
-
setUserName
public void setUserName(String userName)
Configure etcd auth user.
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
Configure etcd auth password.
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
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
public String getLoadBalancerPolicy()
-
setLoadBalancerPolicy
public void setLoadBalancerPolicy(String loadBalancerPolicy)
Configure etcd load balancer policy.
-
getAuthority
public String getAuthority()
-
setAuthority
public void setAuthority(String authority)
Configure the authority used to authenticate connections to servers.
-
getMaxInboundMessageSize
public Integer getMaxInboundMessageSize()
-
setMaxInboundMessageSize
public void setMaxInboundMessageSize(Integer maxInboundMessageSize)
Configure the maximum message size allowed for a single gRPC frame.
-
setHeaders
public void setHeaders(Map<String,String> headers)
Configure the headers to be added to http request headers.
-
setAuthHeaders
public void setAuthHeaders(Map<String,String> authHeaders)
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
public Duration getKeepAliveTime()
-
setKeepAliveTime
public void setKeepAliveTime(Duration keepAliveTime)
Configure the interval for gRPC keepalives. The current minimum allowed by gRPC is 10 seconds.
-
getKeepAliveTimeout
public Duration getKeepAliveTimeout()
-
setKeepAliveTimeout
public void setKeepAliveTimeout(Duration keepAliveTimeout)
Configure the timeout for gRPC keepalives.
-
getRetryMaxDuration
public Duration getRetryMaxDuration()
-
setRetryMaxDuration
public void setRetryMaxDuration(Duration retryMaxDuration)
Configure the retries max duration.
-
getConnectionTimeout
public Duration getConnectionTimeout()
-
setConnectionTimeout
public void setConnectionTimeout(Duration connectionTimeout)
Configure the connection timeout.
-
getServicePath
public String getServicePath()
-
setServicePath
public void setServicePath(String servicePath)
The path to look for service discovery.
-
getKeyCharset
public String getKeyCharset()
-
setKeyCharset
public void setKeyCharset(String keyCharset)
Configure the charset to use for the keys.
-
getValueCharset
public String getValueCharset()
-
setValueCharset
public void setValueCharset(String valueCharset)
Configure the charset to use for the values.
-
getType
public String getType()
-
setType
public void setType(String type)
Configure the type of service discovery. Possible values "watch" or any other.
-
-