public class KurrentDBClientSettings
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ConnectionSettingsBuilder |
builder()
Return a connection settings builder configured with default properties.
|
ClientCertificate |
getDefaultClientCertificate()
Default certificate for user authentication.
|
UserCredentials |
getDefaultCredentials()
Default credentials used to authenticate requests.
|
java.lang.Long |
getDefaultDeadline()
An optional length of time (in milliseconds) to use for gRPC deadlines.
|
int |
getDiscoveryInterval()
How long to wait before retrying a new discovery process (in milliseconds).
|
java.util.Set<java.lang.String> |
getFeatures()
Feature flags
|
int |
getGossipTimeout()
How long to wait for the gossip request to time out (in seconds).
|
Endpoint[] |
getHosts()
The list of endpoints that the client uses to connect.
|
java.util.List<io.grpc.ClientInterceptor> |
getInterceptors()
Registered gRPC interceptors.
|
long |
getKeepAliveInterval()
The amount of time (in milliseconds) to wait after which a keepalive ping is sent on the transport.
|
long |
getKeepAliveTimeout()
The amount of time (in milliseconds) the sender of the keepalive ping waits for an acknowledgement.
|
int |
getMaxDiscoverAttempts()
How many times to attempt connection before throwing.
|
NodePreference |
getNodePreference()
Preferred node type when picking a node within a cluster.
|
java.lang.String |
getTlsCaFile()
Client certificate for secure connection.
|
boolean |
isDnsDiscover()
If the dns discovery is enabled.
|
boolean |
isTls()
If secure mode is enabled.
|
boolean |
isTlsVerifyCert()
If secure mode is enabled, is certificate verification enabled.
|
public boolean isDnsDiscover()
public int getMaxDiscoverAttempts()
public int getDiscoveryInterval()
public int getGossipTimeout()
public NodePreference getNodePreference()
NodePreferencepublic boolean isTls()
public boolean isTlsVerifyCert()
public UserCredentials getDefaultCredentials()
ClientCertificate.UserCredentialspublic ClientCertificate getDefaultClientCertificate()
UserCredentials are configured, the server will ignore the user certificate.ClientCertificatepublic Endpoint[] getHosts()
public long getKeepAliveTimeout()
public long getKeepAliveInterval()
public java.lang.Long getDefaultDeadline()
public java.util.List<io.grpc.ClientInterceptor> getInterceptors()
public java.lang.String getTlsCaFile()
public java.util.Set<java.lang.String> getFeatures()
public static ConnectionSettingsBuilder builder()
ConnectionSettingsBuilder