當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。