Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_57962205
redisson
提交
ad515210
R
redisson
项目概览
weixin_57962205
/
redisson
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redisson
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ad515210
编写于
8月 03, 2016
作者:
N
Nikita
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Unable to redefine RedisClient command execution timeout #570
上级
d215e8f1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
8 deletion
+8
-8
src/main/java/org/redisson/cluster/ClusterConnectionManager.java
...n/java/org/redisson/cluster/ClusterConnectionManager.java
+1
-1
src/main/java/org/redisson/connection/ConnectionManager.java
src/main/java/org/redisson/connection/ConnectionManager.java
+1
-1
src/main/java/org/redisson/connection/ElasticacheConnectionManager.java
...org/redisson/connection/ElasticacheConnectionManager.java
+1
-1
src/main/java/org/redisson/connection/MasterSlaveConnectionManager.java
...org/redisson/connection/MasterSlaveConnectionManager.java
+3
-3
src/main/java/org/redisson/connection/SentinelConnectionManager.java
...va/org/redisson/connection/SentinelConnectionManager.java
+2
-2
未找到文件。
src/main/java/org/redisson/cluster/ClusterConnectionManager.java
浏览文件 @
ad515210
...
...
@@ -146,7 +146,7 @@ public class ClusterConnectionManager extends MasterSlaveConnectionManager {
return
newSucceededFuture
(
connection
);
}
RedisClient
client
=
createClient
(
addr
.
getHost
(),
addr
.
getPort
(),
cfg
.
getConnectTimeout
());
RedisClient
client
=
createClient
(
addr
.
getHost
(),
addr
.
getPort
(),
cfg
.
getConnectTimeout
()
,
cfg
.
getRetryInterval
()
*
cfg
.
getRetryAttempts
()
);
final
Promise
<
RedisConnection
>
result
=
newPromise
();
Future
<
RedisConnection
>
future
=
client
.
connectAsync
();
future
.
addListener
(
new
FutureListener
<
RedisConnection
>()
{
...
...
src/main/java/org/redisson/connection/ConnectionManager.java
浏览文件 @
ad515210
...
...
@@ -92,7 +92,7 @@ public interface ConnectionManager {
Future
<
RedisConnection
>
connectionWriteOp
(
NodeSource
source
,
RedisCommand
<?>
command
);
RedisClient
createClient
(
String
host
,
int
port
,
int
timeout
);
RedisClient
createClient
(
String
host
,
int
port
,
int
timeout
,
int
commandTimeout
);
RedisClient
createClient
(
NodeType
type
,
String
host
,
int
port
);
...
...
src/main/java/org/redisson/connection/ElasticacheConnectionManager.java
浏览文件 @
ad515210
...
...
@@ -107,7 +107,7 @@ public class ElasticacheConnectionManager extends MasterSlaveConnectionManager {
if
(
connection
!=
null
)
{
return
connection
;
}
RedisClient
client
=
createClient
(
addr
.
getHost
(),
addr
.
getPort
(),
cfg
.
getConnectTimeout
());
RedisClient
client
=
createClient
(
addr
.
getHost
(),
addr
.
getPort
(),
cfg
.
getConnectTimeout
()
,
cfg
.
getRetryInterval
()
*
cfg
.
getRetryAttempts
()
);
try
{
connection
=
client
.
connect
();
Promise
<
RedisConnection
>
future
=
newPromise
();
...
...
src/main/java/org/redisson/connection/MasterSlaveConnectionManager.java
浏览文件 @
ad515210
...
...
@@ -284,7 +284,7 @@ public class MasterSlaveConnectionManager implements ConnectionManager {
@Override
public
RedisClient
createClient
(
NodeType
type
,
String
host
,
int
port
)
{
RedisClient
client
=
createClient
(
host
,
port
,
config
.
getConnectTimeout
());
RedisClient
client
=
createClient
(
host
,
port
,
config
.
getConnectTimeout
()
,
config
.
getRetryInterval
()
*
config
.
getRetryAttempts
()
);
clients
.
add
(
new
RedisClientEntry
(
client
,
this
,
type
));
return
client
;
}
...
...
@@ -295,8 +295,8 @@ public class MasterSlaveConnectionManager implements ConnectionManager {
}
@Override
public
RedisClient
createClient
(
String
host
,
int
port
,
int
timeout
)
{
return
new
RedisClient
(
group
,
socketChannelClass
,
host
,
port
,
timeout
);
public
RedisClient
createClient
(
String
host
,
int
port
,
int
timeout
,
int
commandTimeout
)
{
return
new
RedisClient
(
group
,
socketChannelClass
,
host
,
port
,
timeout
,
commandTimeout
);
}
@Override
...
...
src/main/java/org/redisson/connection/SentinelConnectionManager.java
浏览文件 @
ad515210
...
...
@@ -64,7 +64,7 @@ public class SentinelConnectionManager extends MasterSlaveConnectionManager {
final
MasterSlaveServersConfig
c
=
create
(
cfg
);
for
(
URI
addr
:
cfg
.
getSentinelAddresses
())
{
RedisClient
client
=
createClient
(
addr
.
getHost
(),
addr
.
getPort
(),
c
.
getConnectTimeout
());
RedisClient
client
=
createClient
(
addr
.
getHost
(),
addr
.
getPort
(),
c
.
getConnectTimeout
()
,
c
.
getRetryInterval
()
*
c
.
getRetryAttempts
()
);
try
{
RedisConnection
connection
=
client
.
connect
();
if
(!
connection
.
isActive
())
{
...
...
@@ -140,7 +140,7 @@ public class SentinelConnectionManager extends MasterSlaveConnectionManager {
}
private
Future
<
RedisPubSubConnection
>
registerSentinel
(
final
SentinelServersConfig
cfg
,
final
URI
addr
,
final
MasterSlaveServersConfig
c
)
{
RedisClient
client
=
createClient
(
addr
.
getHost
(),
addr
.
getPort
(),
c
.
getConnectTimeout
());
RedisClient
client
=
createClient
(
addr
.
getHost
(),
addr
.
getPort
(),
c
.
getConnectTimeout
()
,
c
.
getRetryInterval
()
*
c
.
getRetryAttempts
()
);
RedisClient
oldClient
=
sentinels
.
putIfAbsent
(
addr
.
getHost
()
+
":"
+
addr
.
getPort
(),
client
);
if
(
oldClient
!=
null
)
{
return
newSucceededFuture
(
null
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录