Package software.amazon.neptune.cluster
Class NeptuneGremlinClusterBuilder
- java.lang.Object
-
- software.amazon.neptune.cluster.NeptuneGremlinClusterBuilder
-
public class NeptuneGremlinClusterBuilder extends Object
-
-
Method Summary
-
-
-
Method Detail
-
build
public static NeptuneGremlinClusterBuilder build()
-
addMetricsHandler
public NeptuneGremlinClusterBuilder addMetricsHandler(MetricsHandler handler)
-
enableMetrics
public NeptuneGremlinClusterBuilder enableMetrics(boolean enableMetrics)
-
acquireConnectionBackoffMillis
public NeptuneGremlinClusterBuilder acquireConnectionBackoffMillis(int acquireConnectionBackoffMillis)
Number of millis to wait between each attempt to acquire a connection.
-
eagerRefreshBackoffMillis
public NeptuneGremlinClusterBuilder eagerRefreshBackoffMillis(int eagerRefreshBackoffMillis)
Minimum number of millis to wait between invoking handler supplied inonEagerRefresh(org.apache.tinkerpop.gremlin.driver.OnEagerRefresh).
-
eagerRefreshWaitTimeMillis
public NeptuneGremlinClusterBuilder eagerRefreshWaitTimeMillis(int eagerRefreshWaitTimeMillis)
Number of millis to wait while trying to acquire connection before invoking handler supplied inonEagerRefresh(org.apache.tinkerpop.gremlin.driver.OnEagerRefresh).
-
onEagerRefresh
public NeptuneGremlinClusterBuilder onEagerRefresh(OnEagerRefresh eventHandler)
Handler to be invoked aftereagerRefreshWaitTimeMillis(int). The handler should return aSupplier.
-
endpointFilter
public NeptuneGremlinClusterBuilder endpointFilter(EndpointFilter endpointFilter)
Strategy for filtering and enriching available endpoints before creating clients.
-
nioPoolSize
public NeptuneGremlinClusterBuilder nioPoolSize(int nioPoolSize)
-
workerPoolSize
public NeptuneGremlinClusterBuilder workerPoolSize(int workerPoolSize)
-
path
public NeptuneGremlinClusterBuilder path(String path)
-
serializer
public NeptuneGremlinClusterBuilder serializer(String mimeType)
-
serializer
public NeptuneGremlinClusterBuilder serializer(org.apache.tinkerpop.gremlin.util.ser.Serializers mimeType)
-
serializer
public NeptuneGremlinClusterBuilder serializer(org.apache.tinkerpop.gremlin.util.MessageSerializer serializer)
-
enableSsl
public NeptuneGremlinClusterBuilder enableSsl(boolean enable)
Enables connectivity over SSL - default 'true' for Amazon Neptune clusters.
-
sslContext
public NeptuneGremlinClusterBuilder sslContext(io.netty.handler.ssl.SslContext sslContext)
-
keepAliveInterval
public NeptuneGremlinClusterBuilder keepAliveInterval(long keepAliveInterval)
-
keyStore
public NeptuneGremlinClusterBuilder keyStore(String keyStore)
-
keyStorePassword
public NeptuneGremlinClusterBuilder keyStorePassword(String keyStorePassword)
-
trustStore
public NeptuneGremlinClusterBuilder trustStore(String trustStore)
-
trustStorePassword
public NeptuneGremlinClusterBuilder trustStorePassword(String trustStorePassword)
-
keyStoreType
public NeptuneGremlinClusterBuilder keyStoreType(String keyStoreType)
-
sslEnabledProtocols
public NeptuneGremlinClusterBuilder sslEnabledProtocols(List<String> sslEnabledProtocols)
-
sslCipherSuites
public NeptuneGremlinClusterBuilder sslCipherSuites(List<String> sslCipherSuites)
-
sslSkipCertValidation
public NeptuneGremlinClusterBuilder sslSkipCertValidation(boolean sslSkipCertValidation)
-
minInProcessPerConnection
public NeptuneGremlinClusterBuilder minInProcessPerConnection(int minInProcessPerConnection)
-
maxInProcessPerConnection
public NeptuneGremlinClusterBuilder maxInProcessPerConnection(int maxInProcessPerConnection)
-
maxSimultaneousUsagePerConnection
public NeptuneGremlinClusterBuilder maxSimultaneousUsagePerConnection(int maxSimultaneousUsagePerConnection)
-
minSimultaneousUsagePerConnection
public NeptuneGremlinClusterBuilder minSimultaneousUsagePerConnection(int minSimultaneousUsagePerConnection)
-
maxConnectionPoolSize
public NeptuneGremlinClusterBuilder maxConnectionPoolSize(int maxSize)
-
minConnectionPoolSize
public NeptuneGremlinClusterBuilder minConnectionPoolSize(int minSize)
-
resultIterationBatchSize
public NeptuneGremlinClusterBuilder resultIterationBatchSize(int size)
-
maxWaitForConnection
public NeptuneGremlinClusterBuilder maxWaitForConnection(int maxWait)
-
maxWaitForClose
public NeptuneGremlinClusterBuilder maxWaitForClose(int maxWait)
-
maxContentLength
public NeptuneGremlinClusterBuilder maxContentLength(int maxContentLength)
-
channelizer
public NeptuneGremlinClusterBuilder channelizer(String channelizerClass)
-
channelizer
public NeptuneGremlinClusterBuilder channelizer(Class channelizerClass)
-
validationRequest
public NeptuneGremlinClusterBuilder validationRequest(String script)
-
reconnectInterval
public NeptuneGremlinClusterBuilder reconnectInterval(int interval)
-
loadBalancingStrategy
public NeptuneGremlinClusterBuilder loadBalancingStrategy(Supplier<org.apache.tinkerpop.gremlin.driver.LoadBalancingStrategy> loadBalancingStrategy)
-
authProperties
public NeptuneGremlinClusterBuilder authProperties(org.apache.tinkerpop.gremlin.driver.AuthProperties authProps)
-
credentials
public NeptuneGremlinClusterBuilder credentials(String username, String password)
-
protocol
public NeptuneGremlinClusterBuilder protocol(String protocol)
-
jaasEntry
public NeptuneGremlinClusterBuilder jaasEntry(String jaasEntry)
-
ignoreExceptionsDuringEndpointCreation
public NeptuneGremlinClusterBuilder ignoreExceptionsDuringEndpointCreation(Map<Class<? extends Exception>,Set<String>> ignoreExceptionsDuringEndpointCreation)
A HashMap containing Exceptions with corresponding signatures to ignore during endpoint creation
-
addContactPoint
public NeptuneGremlinClusterBuilder addContactPoint(String address)
-
addContactPoints
public NeptuneGremlinClusterBuilder addContactPoints(String... addresses)
-
addContactPoints
public NeptuneGremlinClusterBuilder addContactPoints(Collection<String> addresses)
-
addContactPoint
public NeptuneGremlinClusterBuilder addContactPoint(Endpoint endpoint)
-
addContactPoints
public NeptuneGremlinClusterBuilder addContactPoints(EndpointCollection endpointCollection)
-
addContactPointsMetadata
public NeptuneGremlinClusterBuilder addContactPointsMetadata(Endpoint... endpointCollection)
-
addContactPointsMetadata
public NeptuneGremlinClusterBuilder addContactPointsMetadata(Collection<Endpoint> endpointCollection)
-
port
public NeptuneGremlinClusterBuilder port(int port)
-
proxyPort
public NeptuneGremlinClusterBuilder proxyPort(int port)
-
proxyAddress
public NeptuneGremlinClusterBuilder proxyAddress(String address)
-
proxyRemoveHostHeader
public NeptuneGremlinClusterBuilder proxyRemoveHostHeader(boolean removeHostHeader)
-
enableIamAuth
public NeptuneGremlinClusterBuilder enableIamAuth(boolean enable)
-
serviceRegion
public NeptuneGremlinClusterBuilder serviceRegion(String serviceRegion)
-
iamProfile
public NeptuneGremlinClusterBuilder iamProfile(String iamProfile)
-
handshakeInterceptor
public NeptuneGremlinClusterBuilder handshakeInterceptor(org.apache.tinkerpop.gremlin.driver.HandshakeInterceptor interceptor)
-
credentials
@Deprecated public NeptuneGremlinClusterBuilder credentials(com.amazonaws.auth.AWSCredentialsProvider v1AwsCredentialProvider)
Deprecated.
-
credentials
public NeptuneGremlinClusterBuilder credentials(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials)
-
create
public GremlinCluster create()
-
-