Skip to content

Commit 608b44b

Browse files
authored
[ISSUE #439]⚡️Implementing Functionality Methods of HookUtils.java🎨 (#440)
* ⚡️Implementing Functionality Methods of HookUtils.java🎨 * fix ci error
1 parent 3d56efb commit 608b44b

File tree

11 files changed

+632
-5
lines changed

11 files changed

+632
-5
lines changed

rocketmq-broker/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ mod processor;
3737
mod schedule;
3838
mod subscription;
3939
mod topic;
40+
mod util;

rocketmq-broker/src/schedule/schedule_message_service.rs

+12
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ pub struct ScheduleMessageService {
2525
pub(crate) broker_config: Arc<BrokerConfig>,
2626
}
2727

28+
impl ScheduleMessageService {
29+
pub fn delay_level2queue_id(delay_level: i32) -> i32 {
30+
delay_level - 1
31+
}
32+
}
33+
34+
impl ScheduleMessageService {
35+
pub fn get_max_delay_level(&self) -> i32 {
36+
0
37+
}
38+
}
39+
2840
impl ConfigManager for ScheduleMessageService {
2941
fn decode0(&mut self, _key: &[u8], _body: &[u8]) {
3042
todo!()

rocketmq-broker/src/util.rs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
pub(crate) mod hook_utils;

0 commit comments

Comments
 (0)