Class SendMediator

  • All Implemented Interfaces:
    AspectConfigurable, ManagedLifecycle, Mediator, SynapseArtifact

    public class SendMediator
    extends AbstractMediator
    implements ManagedLifecycle
    SendMediator sends a message using specified semantics. If it contains an endpoint it will send the message to that endpoint. Once a message is sent to the endpoint further sending behaviors are completely governed by that endpoint. If there is no endpoint available, SendMediator will send the message to the implicitly stated destination.
    • Constructor Detail

      • SendMediator

        public SendMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        This will call the send method on the messages with implicit message parameters or else if there is an endpoint, with that endpoint parameters
        Specified by:
        mediate in interface Mediator
        Parameters:
        synCtx - the current message to be sent
        Returns:
        false always as this is a leaf mediator
      • getEndpoint

        public Endpoint getEndpoint()
      • setEndpoint

        public void setEndpoint​(Endpoint endpoint)
      • getReceivingSequence

        public Value getReceivingSequence()
      • setReceivingSequence

        public void setReceivingSequence​(Value receivingSequence)
      • setBuildMessage

        public void setBuildMessage​(boolean buildMessage)
      • isBuildMessage

        public boolean isBuildMessage()
      • init

        public void init​(SynapseEnvironment synapseEnvironment)
        Description copied from interface: ManagedLifecycle
        This method should implement the initialization of the implemented parts of the configuration.
        Specified by:
        init in interface ManagedLifecycle
        Parameters:
        synapseEnvironment - SynapseEnvironment to be used for initialization
      • destroy

        public void destroy()
        Description copied from interface: ManagedLifecycle
        This method should implement the destroying of the implemented parts of the configuration.
        Specified by:
        destroy in interface ManagedLifecycle