当前位置: 首页>>代码示例>>Java>>正文


Java ConnectionManager类代码示例

本文整理汇总了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;
}
 
开发者ID:rollenholt-SourceReading,项目名称:redisson,代码行数:9,代码来源:RedissonSubSortedSet.java

示例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());
}
 
开发者ID:ICIJ,项目名称:extract,代码行数:18,代码来源:ConnectionManagerFactory.java

示例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;
}
 
开发者ID:ICIJ,项目名称:extract,代码行数:13,代码来源:RedisReportMap.java

示例4: CommandBatchExecutorService

import org.redisson.connection.ConnectionManager; //导入依赖的package包/类
public CommandBatchExecutorService(ConnectionManager connectionManager) {
    super(connectionManager);
}
 
开发者ID:rollenholt-SourceReading,项目名称:redisson,代码行数:4,代码来源:CommandBatchExecutorService.java

示例5: RedissonBatch

import org.redisson.connection.ConnectionManager; //导入依赖的package包/类
public RedissonBatch(ConnectionManager connectionManager) {
    this.executorService = new CommandBatchExecutorService(connectionManager);
}
 
开发者ID:rollenholt-SourceReading,项目名称:redisson,代码行数:4,代码来源:RedissonBatch.java

示例6: CommandExecutorService

import org.redisson.connection.ConnectionManager; //导入依赖的package包/类
public CommandExecutorService(ConnectionManager connectionManager) {
    this.connectionManager = connectionManager;
}
 
开发者ID:rollenholt-SourceReading,项目名称:redisson,代码行数:4,代码来源:CommandExecutorService.java

示例7: getConnectionManager

import org.redisson.connection.ConnectionManager; //导入依赖的package包/类
@Override
public ConnectionManager getConnectionManager() {
    return connectionManager;
}
 
开发者ID:rollenholt-SourceReading,项目名称:redisson,代码行数:5,代码来源:CommandExecutorService.java

示例8: RedisNodes

import org.redisson.connection.ConnectionManager; //导入依赖的package包/类
public RedisNodes(ConnectionManager connectionManager) {
    this.connectionManager = connectionManager;
}
 
开发者ID:rollenholt-SourceReading,项目名称:redisson,代码行数:4,代码来源:RedisNodes.java

示例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;
}
 
开发者ID:ICIJ,项目名称:extract,代码行数:15,代码来源:RedisDocumentQueue.java

示例10: getConnectionManager

import org.redisson.connection.ConnectionManager; //导入依赖的package包/类
ConnectionManager getConnectionManager(); 
开发者ID:rollenholt-SourceReading,项目名称:redisson,代码行数:2,代码来源:CommandExecutor.java


注:本文中的org.redisson.connection.ConnectionManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。