本文整理汇总了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();