use rocketmq_rust::ArcMut;
use tracing::error;
use crate::ha::general_ha_connection::GeneralHAConnection;
use crate::ha::general_ha_service::GeneralHAService;
use crate::message_store::local_file_message_store::LocalFileMessageStore;
use crate::store_error::HAResult;
pub struct HAConnectionStateNotificationService {
ha_service: GeneralHAService,
default_message_store: ArcMut<LocalFileMessageStore>,
}
impl HAConnectionStateNotificationService {
pub fn new(
ha_service: GeneralHAService,
default_message_store: ArcMut<LocalFileMessageStore>,
) -> Self {
HAConnectionStateNotificationService {
ha_service,
default_message_store,
}
}
pub fn shutdown(&self) {
error!(
"HAConnectionStateNotificationService shutdown is not implemented. This is a \
placeholder method."
);
}
pub async fn start(&mut self) -> HAResult<()> {
error!("HAConnectionStateNotificationService is not implemented yet");
Ok(())
}
pub async fn check_connection_state_and_notify(
&self,
connection: &GeneralHAConnection,
) -> bool {
unimplemented!("check_connection_state_and_notify is not implemented yet");
}
}