You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@rocketmq.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/08/01 06:46:00 UTC
[jira] [Commented] (ROCKETMQ-233) Apply pull interval when pull
result contains no new matched msg
[ https://issues.apache.org/jira/browse/ROCKETMQ-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16108473#comment-16108473 ]
ASF GitHub Bot commented on ROCKETMQ-233:
-----------------------------------------
Github user shroman commented on a diff in the pull request:
https://github.com/apache/incubator-rocketmq/pull/127#discussion_r130530039
--- Diff: client/src/main/java/org/apache/rocketmq/client/consumer/PullIntervalPolicy.java ---
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.rocketmq.client.consumer;
+
+public interface PullIntervalPolicy {
+
+ void update(PullStatus status);
+
+ int getPullInterval();
--- End diff --
What about making it `long`? _delay_ of executePullRequestLater(...) is long.
> Apply pull interval when pull result contains no new matched msg
> ----------------------------------------------------------------
>
> Key: ROCKETMQ-233
> URL: https://issues.apache.org/jira/browse/ROCKETMQ-233
> Project: Apache RocketMQ
> Issue Type: Bug
> Reporter: Zhanhui Li
> Assignee: Zhanhui Li
> Fix For: 4.2.0-incubating
>
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)