Class NullConduitSelector

  • All Implemented Interfaces:
    ConduitSelector

    public class NullConduitSelector
    extends Object
    implements ConduitSelector
    Strategy for null Conduit retrieval. An instance of this class is set on the Exchange to clear the current ConduitSelector, as a work-around for broken Exchange.remove(ConduitSelector.class) semantics.
    • Constructor Detail

      • NullConduitSelector

        public NullConduitSelector()
    • Method Detail

      • prepare

        public void prepare​(Message message)
        Called prior to the interceptor chain being traversed.
        Specified by:
        prepare in interface ConduitSelector
        Parameters:
        message - the current Message
      • selectConduit

        public Conduit selectConduit​(Message message)
        Called when a Conduit is actually required.
        Specified by:
        selectConduit in interface ConduitSelector
        Parameters:
        message -
        Returns:
        the Conduit to use for mediation of the message
      • complete

        public void complete​(Exchange exchange)
        Called on completion of the MEP for which the Conduit was required.
        Specified by:
        complete in interface ConduitSelector
        Parameters:
        exchange - represents the completed MEP