public static class MatrixStoreConnection.MatrixStoreConnectionBuilder
extends java.lang.Object
MatrixStoreConnection
.Modifier and Type | Method and Description |
---|---|
MatrixStoreConnection |
build()
Create a new connection to the MatrixStore cluster using the details
supplied to the builder.
|
MatrixStoreConnection.MatrixStoreConnectionBuilder |
withClusterId(java.lang.String clusterId)
Id of the cluster you are connecting to.
|
MatrixStoreConnection.MatrixStoreConnectionBuilder |
withHosts(java.lang.String[] hosts)
Host addresses of the cluster you are connecting to.
|
MatrixStoreConnection.MatrixStoreConnectionBuilder |
withProtocolName(java.lang.String protocolName)
A specific RPC protocol to use with this connection.
|
public MatrixStoreConnection.MatrixStoreConnectionBuilder withClusterId(java.lang.String clusterId)
clusterId
- public MatrixStoreConnection.MatrixStoreConnectionBuilder withProtocolName(java.lang.String protocolName)
protocolName
- Specific RPC protocol name. "rpc", "srpc", "arpc", "asrpc".public MatrixStoreConnection.MatrixStoreConnectionBuilder withHosts(java.lang.String[] hosts)
hosts
- public MatrixStoreConnection build() throws java.io.IOException
java.io.IOException
- if details are incorrect, invalid, or there is a connection issue.