rocketmq_common/common/attribute/
subscription_group_attributes.rs

1use std::collections::HashMap;
2use std::sync::Arc;
3use std::sync::OnceLock;
4
5use cheetah_string::CheetahString;
6
7use crate::common::attribute::Attribute;
8
9pub struct SubscriptionGroupAttributes {}
10
11impl SubscriptionGroupAttributes {
12    #[allow(clippy::redundant_closure)]
13    pub fn all() -> &'static HashMap<CheetahString, Arc<dyn Attribute>> {
14        static ALL: OnceLock<HashMap<CheetahString, Arc<dyn Attribute>>> = OnceLock::new();
15        ALL.get_or_init(|| HashMap::new())
16    }
17}