public class ClusterClient extends Client
Client.IndexOptions
Constructor and Description |
---|
ClusterClient(String indexName,
String host,
int port) |
ClusterClient(String indexName,
String host,
int port,
int timeout,
int poolSize)
Create a new client to a RediSearch index
|
ClusterClient(String indexName,
String host,
int port,
int timeout,
int poolSize,
String password)
Create a new ClusterClient to a RediSearch index which can connect to password protected
Redis Server
|
ClusterClient(String indexName,
String masterName,
Set<String> sentinels)
Creates a new ClusterClient to a RediSearch index with JedisSentinelPool implementation.
|
ClusterClient(String indexName,
String masterName,
Set<String> sentinels,
int timeout,
int poolSize)
Creates a new ClusterClient to a RediSearch index with JedisSentinelPool implementation.
|
ClusterClient(String indexName,
String masterName,
Set<String> sentinels,
int timeout,
int poolSize,
String password)
Creates a new ClusterClient to a RediSearch index with JedisSentinelPool implementation.
|
Modifier and Type | Method and Description |
---|---|
List<Object> |
broadcast(String... args) |
addDocument, addDocument, addDocument, addDocument, addDocument, addHash, aggregate, createIndex, deleteDocument, dropIndex, dropIndex, explain, getDocument, getInfo, replaceDocument, search, updateDocument
public ClusterClient(String indexName, String host, int port, int timeout, int poolSize)
indexName
- the name of the index we are connecting to or creatinghost
- the redis hostport
- the redis pottimeout
- the connection timeoutpoolSize
- the connection pool sizepublic ClusterClient(String indexName, String host, int port, int timeout, int poolSize, String password)
indexName
- the name of the index we are connecting to or creatinghost
- the redis hostport
- the redis pottimeout
- the connection timeoutpoolSize
- the connection pool sizepassword
- the password for authentication in a password protected Redis serverpublic ClusterClient(String indexName, String masterName, Set<String> sentinels, int timeout, int poolSize, String password)
indexName
- the name of the index we are connecting to or creatingmasterName
- the masterName to connect from list of masters monitored by sentinelssentinels
- the set of sentinels monitoring the clustertimeout
- the timeout in millisecondspoolSize
- the poolSize of JedisSentinelPoolpassword
- the password for authentication in a password protected Redis serverpublic ClusterClient(String indexName, String masterName, Set<String> sentinels, int timeout, int poolSize)
The Client is initialized with following default values for JedisSentinelPool
indexName
- the name of the index we are connecting to or creatingmasterName
- the masterName to connect from list of masters monitored by sentinelssentinels
- the set of sentinels monitoring the clustertimeout
- the timeout in millisecondspoolSize
- the poolSize of JedisSentinelPoolpublic ClusterClient(String indexName, String masterName, Set<String> sentinels)
The Client is initialized with following default values for JedisSentinelPool
indexName
- the name of the index we are connecting to or creatingmasterName
- the masterName to connect from list of masters monitored by sentinelssentinels
- the set of sentinels monitoring the clusterCopyright © 2018. All rights reserved.