public class DseStartupOptionsBuilder
extends com.datastax.oss.driver.internal.core.context.StartupOptionsBuilder
Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_NAME_KEY |
static String |
APPLICATION_VERSION_KEY |
static String |
CLIENT_ID_KEY |
Constructor and Description |
---|
DseStartupOptionsBuilder(com.datastax.oss.driver.internal.core.context.InternalDriverContext context) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
build() |
protected String |
getDriverName() |
protected String |
getDriverVersion() |
DseStartupOptionsBuilder |
withApplicationName(String applicationName)
Sets the client application name to be sent in the Startup message options.
|
DseStartupOptionsBuilder |
withApplicationVersion(String applicationVersion)
Sets the client application version to be sent in the Startup message options.
|
DseStartupOptionsBuilder |
withClientId(UUID clientId)
Sets the client ID to be sent in the Startup message options.
|
public static final String APPLICATION_NAME_KEY
public static final String APPLICATION_VERSION_KEY
public static final String CLIENT_ID_KEY
public DseStartupOptionsBuilder(com.datastax.oss.driver.internal.core.context.InternalDriverContext context)
protected String getDriverVersion()
getDriverVersion
in class com.datastax.oss.driver.internal.core.context.StartupOptionsBuilder
protected String getDriverName()
getDriverName
in class com.datastax.oss.driver.internal.core.context.StartupOptionsBuilder
public DseStartupOptionsBuilder withClientId(@Nullable UUID clientId)
If this method is not invoked, or the id passed in is null, a random UUID
will be
generated and used by default.
public DseStartupOptionsBuilder withApplicationName(@Nullable String applicationName)
If this method is not invoked, or the name passed in is null, no application name option will be sent in the startup message options.
public DseStartupOptionsBuilder withApplicationVersion(@Nullable String applicationVersion)
If this method is not invoked, or the name passed in is null, no application version option will be sent in the startup message options.
Copyright © 2017–2019. All rights reserved.