org.apache.helix.model.Message.setRetryCount()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中org.apache.helix.model.Message.setRetryCount()方法的一些代码示例,展示了Message.setRetryCount()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.setRetryCount()方法的具体详情如下:
包路径:org.apache.helix.model.Message
类名称:Message
方法名:setRetryCount

Message.setRetryCount介绍

[英]Set the number of times to retry message handling on timeouts
[中]设置超时时重试消息处理的次数

代码示例

代码示例来源:origin: org.apache.helix/helix-core

List<Message> list = generateMessage.get(receiverType);
for (Message tempMessage : list) {
 tempMessage.setRetryCount(retryCount);
 tempMessage.setExecutionTimeout(timeOut);
 tempMessage.setSrcInstanceType(_manager.getInstanceType());

代码示例来源:origin: apache/helix

List<Message> list = generateMessage.get(receiverType);
for (Message tempMessage : list) {
 tempMessage.setRetryCount(retryCount);
 tempMessage.setExecutionTimeout(timeOut);
 tempMessage.setSrcInstanceType(_manager.getInstanceType());

代码示例来源:origin: apache/helix

_message.setRetryCount(retryCount - 1);
HelixTask task = new HelixTask(_message, _notificationContext, _handler, _executor);
_executor.scheduleTask(task);

代码示例来源:origin: apache/helix

msg.setSrcName("127.101.1.23_2234");
msg.setExecutionTimeout((i + 1) * 600);
msg.setRetryCount(1);
msgList.add(msg);

代码示例来源:origin: org.apache.helix/helix-core

_message.setRetryCount(retryCount - 1);
HelixTask task = new HelixTask(_message, _notificationContext, _handler, _executor);
_executor.scheduleTask(task);

相关文章