Trait PushWorkHandler
Source pub trait PushWorkHandler: Send + Sync {
// Required methods
fn handle_payload<'life0, 'async_trait>(
&'life0 self,
payload: Bytes,
) -> Pin<Box<dyn Future<Output = Result<(), PipelineError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_metrics(
&self,
endpoint: &Endpoint,
metrics_labels: Option<&[(&str, &str)]>,
) -> Result<()>;
// Provided method
fn set_endpoint_health_check_notifier(
&self,
_notifier: Arc<Notify>,
) -> Result<()> { ... }
}
Add metrics to the handler
Set the endpoint-specific notifier for health check timer resets