Class NotificationDistributionHandler

  • All Implemented Interfaces:
    DistributionHandler

    public class NotificationDistributionHandler
    extends Object
    implements DistributionHandler
    A distribution handler that distributed message to a given destination using an A3 acquisition notification.
    Author:
    willy malvault (willy.malvault@scalagent.fr)
    See Also:
    AcquisitionNot
    • Field Detail

      • logger

        private static final Logger logger
      • remoteDestinationID

        private AgentId remoteDestinationID
        the queue to send the notification to
    • Constructor Detail

      • NotificationDistributionHandler

        public NotificationDistributionHandler()
    • Method Detail

      • init

        public void init​(Properties properties,
                         boolean firstTime)
        Description copied from interface: DistributionHandler
        Configures the handler with the given properties.
        Specified by:
        init in interface DistributionHandler
        Parameters:
        properties - The initial set of properties.
      • distribute

        public void distribute​(Message message)
                        throws Exception
        Description copied from interface: DistributionHandler
        Distributes the given message outside of the JORAM server.
        Specified by:
        distribute in interface DistributionHandler
        Parameters:
        message - the message to distribute
        Throws:
        Exception - if the message could not be distributed. The message will be forwarded to a DMQ, if any.
      • close

        public void close()
        Description copied from interface: DistributionHandler
        Closes this handler and releases any system resources associated to it. There will be no subsequent call to this handler after it has been closed.
        Specified by:
        close in interface DistributionHandler