Class AliasQueue

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • logger

        private static final Logger logger
      • DEBUG

        private static final boolean DEBUG
      • remoteDestinationID

        private AgentId remoteDestinationID
        The queue to send the notification to
      • expiration

        private long expiration
        The maximum time the notification can wait in the network before expiration.
    • Constructor Detail

      • AliasQueue

        public AliasQueue()
    • Method Detail

      • preProcess

        public ClientMessages preProcess​(AgentId from,
                                         ClientMessages cm)
        Description copied from class: Destination
        This method is needed to add processing before the standard handling. It is used in subclass of Queue and Topic. The incoming messages can be modified or deleted during the processing.
        Overrides:
        preProcess in class Destination
        Parameters:
        from - The sender of the message
        cm - The incoming messages.
        Returns:
        The incoming messages after processing.
      • react

        public void react​(AgentId from,
                          Notification not)
                   throws Exception
        Description copied from class: Queue
        Distributes the received notifications to the appropriate reactions.
        Overrides:
        react in class Queue
        Parameters:
        from - agent sending notification
        not - notification to react to
        Throws:
        Exception - unspecialized exception
      • doUnknownAgent

        protected void doUnknownAgent​(UnknownAgent uA)
        Description copied from class: Queue
        Method specifically processing an UnknownAgent instance.

        The specific processing is done when a QueueMsgReply was sent to a requester which does not exist anymore. In that case, the messages sent to this requester and not yet acknowledged are marked as "denied" for delivery to an other requester, and a new delivery sequence is launched. Messages considered as undeliverable are removed and sent to the DMQ.

        Overrides:
        doUnknownAgent in class Queue