public class MatrixStoreBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
MatrixStore |
build()
Builds an instance of a MatrixStore object.
|
MatrixStoreBuilder |
withConnection(MatrixStoreConnection conn)
Connection to use for the life time of the
MatrixStore instance. |
MatrixStoreBuilder |
withCredentials(Credentials cred)
Must be one of either
UsernamePasswordCredentials , where user login and password are given,
or AccessKeyBasedCredentials , where a user's access key id and secret is used. |
public MatrixStoreBuilder withConnection(MatrixStoreConnection conn)
MatrixStore
instance.
Requires an open MatrixStoreConnection
to a cluster.conn
- public MatrixStoreBuilder withCredentials(Credentials cred)
UsernamePasswordCredentials
, where user login and password are given,
or AccessKeyBasedCredentials
, where a user's access key id and secret is used.cred
- public MatrixStore build() throws java.io.IOException
IllegalArgumentException
will be thrown.java.io.IOException
- if there is any issue during authentication.