Class StandardProcessingExceptionHandler

    • Constructor Detail

      • StandardProcessingExceptionHandler

        public StandardProcessingExceptionHandler()

        Creates a new instance. Defaults to null implementations.

      • StandardProcessingExceptionHandler

        public StandardProcessingExceptionHandler​(ServiceList service)
      • StandardProcessingExceptionHandler

        public StandardProcessingExceptionHandler​(Service... services)
    • Method Detail

      • handleProcessingException

        public void handleProcessingException​(AdaptrisMessage msg)

        Handles error messages from Workflows by sending them to the configured error producer. The best practice would be for the service to write the message to the filesystem, which is pretty unlikely to fail.

        Specified by:
        handleProcessingException in interface ProcessingExceptionHandler
        Parameters:
        msg - the AdaptrisMessage to handle
      • stop

        public void stop()
        Description copied from interface: ComponentLifecycle
        Stop the component

        A stopped component is not expected to be ready to process messages. In the case of AdaptrisMessageConsumer, calling stop will pause message delivery. Throwing a RuntimeException may cause unintended consequences

        Specified by:
        stop in interface ComponentLifecycle
      • close

        public void close()
        Description copied from interface: ComponentLifecycle
        Closes the component.

        A closed component should release any connections it uses, etc. and clean up completely. Throwing a RuntimeException may cause unintended consequences

        Specified by:
        close in interface ComponentLifecycle
      • getProcessingExceptionService

        public Service getProcessingExceptionService()
        Get the service(s) that will be applied.
        Returns:
        the service
      • setProcessingExceptionService

        public void setProcessingExceptionService​(Service s)
        Set the service(s) that will be applied.
        Parameters:
        s - the service
      • registeredWorkflows

        protected java.util.Map<java.lang.String,​Workflow> registeredWorkflows()
        Get the map of registered workflows.

        The workflows are keyed against their unique-id.

        Returns:
        the internal map of registered workflows.
      • hasConfiguredBehaviour

        public boolean hasConfiguredBehaviour()
        Description copied from interface: ProcessingExceptionHandler
        Simply report back to the owning component whether or not this ProcessingExceptionHandler is actually going to do anything.
        Specified by:
        hasConfiguredBehaviour in interface ProcessingExceptionHandler
        Returns:
        true if there is actual concrete behaviour to this implementation.