本文整理匯總了Java中org.redisson.connection.ConnectionManager類的典型用法代碼示例。如果您正苦於以下問題:Java ConnectionManager類的具體用法?Java ConnectionManager怎麽用?Java ConnectionManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ConnectionManager類屬於org.redisson.connection包,在下文中一共展示了ConnectionManager類的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: RedissonSubSortedSet
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
public RedissonSubSortedSet(RedissonSortedSet<V> redissonSortedSet, ConnectionManager connectionManager, V headValue, V tailValue) {
super();
this.headValue = headValue;
this.tailValue = tailValue;
this.connectionManager = connectionManager;
this.redissonSortedSet = redissonSortedSet;
}
示例2: create
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
/**
* Create a new connection manager for a single server using the supplied address.
*
* @return a new connection manager
*/
public ConnectionManager create() {
final String address = null == this.address ? "127.0.0.1:6379" : this.address;
final int timeout = this.timeout < 0 ? 60 * 1000 : this.timeout;
// TODO: support all the other types supported by the ConnectionManagerFactory.
// TODO: Create a hash of config options so that only one manager is used per unique server. This should
// improve contention.
return new SingleConnectionManager(new Config()
.useSingleServer()
.setAddress(address)
.setTimeout(timeout), new Config());
}
示例3: RedisReportMap
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
/**
* Instantiate a new Redis-backed report using the provided connection manager and name.
*
* @param connectionManager instantiated using {@link ConnectionManagerFactory}
* @param name the name of the report
*/
private RedisReportMap(final DocumentFactory factory, final ConnectionManager connectionManager, final String name,
final Charset charset) {
super(new ReportCodec(factory, charset), new CommandSyncService(connectionManager), null == name ?
DEFAULT_NAME : name, Redisson.create(connectionManager.getCfg()), null);
this.connectionManager = connectionManager;
}
示例4: CommandBatchExecutorService
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
public CommandBatchExecutorService(ConnectionManager connectionManager) {
super(connectionManager);
}
示例5: RedissonBatch
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
public RedissonBatch(ConnectionManager connectionManager) {
this.executorService = new CommandBatchExecutorService(connectionManager);
}
示例6: CommandExecutorService
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
public CommandExecutorService(ConnectionManager connectionManager) {
this.connectionManager = connectionManager;
}
示例7: getConnectionManager
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
@Override
public ConnectionManager getConnectionManager() {
return connectionManager;
}
示例8: RedisNodes
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
public RedisNodes(ConnectionManager connectionManager) {
this.connectionManager = connectionManager;
}
示例9: RedisDocumentQueue
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
/**
* Instantiate a new Redis-backed queue using the provided connection manager and name.
*
* @param factory for creating {@link Document} objects
* @param connectionManager instantiated using {@link ConnectionManagerFactory}
* @param name the name of the queue
* @param charset the character set for encoding and decoding paths
*/
private RedisDocumentQueue(final DocumentFactory factory, final ConnectionManager connectionManager,
final String name, final Charset charset) {
super(new DocumentQueueCodec(factory, charset), new CommandSyncService(connectionManager), null == name ?
DEFAULT_NAME : name, Redisson.create(connectionManager.getCfg()));
this.connectionManager = connectionManager;
}
示例10: getConnectionManager
import org.redisson.connection.ConnectionManager; //導入依賴的package包/類
ConnectionManager getConnectionManager();