Interface ExtendedSynapseHandler

  • All Superinterfaces:
    SynapseHandler
    All Known Implementing Classes:
    AbstractExtendedSynapseHandler

    public interface ExtendedSynapseHandler
    extends SynapseHandler
    Interface For Extended Synapse Handlers

    Synapse Handlers are invoked when a message received to the mediation engine or a message sent out from the engine.

    When a message received to the engine, handles are invoked just before the mediation flow When a message is sent out from the engine, handlers are invoked just after the mediation flow There are two requests coming into the engine and two responses going out from the engine. For all four messages relevant method is invoked

    • Method Detail

      • handleServerInit

        boolean handleServerInit()
        Handle server startup.
      • handleServerShutDown

        boolean handleServerShutDown()
        Handle server shut down.
      • handleArtifactDeployment

        boolean handleArtifactDeployment​(String artifactName,
                                         String artifactType,
                                         String startTime)
        Handle artifact deployment.
        Parameters:
        artifactName - name of the artifact deployed
        artifactType - type of the artifact deployed
        startTime - artifact deployed time
        Returns:
        whether mediation flow should continue
      • handleArtifactUnDeployment

        boolean handleArtifactUnDeployment​(String artifactName,
                                           String artifactType,
                                           String unDeployTime)
        Handle artifact undeployment.
        Parameters:
        artifactName - name of the artifact deployed
        artifactType - type of the artifact deployed
        unDeployTime - artifact undeployment time
        Returns:
        whether mediation flow should continue
      • handleError

        boolean handleError​(MessageContext synCtx)
        Handle error requests coming to the synapse engine.
        Parameters:
        synCtx - outgoing response message context
        Returns:
        whether mediation flow should continue