OutboundAdapter

Trait OutboundAdapter 

Source
pub trait OutboundAdapter: BaseAdapter {
    // Required method
    fn dispatch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        exchange: &'life1 Exchange,
    ) -> Pin<Box<dyn Future<Output = Result<OutboundDispatchResult, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}
Expand description

Outbound adapter: sends data derived from an Exchange to an external system.

Implementations should:

  • Select in_msg or out_msg as the source for serialization (document behavior).
  • Propagate correlation / message ids outward if relevant (tracing continuity).
  • Map remote responses (status, id) back into the returned OutboundDispatchResult.

Required Methods§

Source

fn dispatch<'life0, 'life1, 'async_trait>( &'life0 self, exchange: &'life1 Exchange, ) -> Pin<Box<dyn Future<Output = Result<OutboundDispatchResult, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Perform a single outbound dispatch. Return an OutboundDispatchResult describing outcome.

Implementors§