Class CallbackNotification

  • All Implemented Interfaces:
    Encodable, Serializable, Cloneable
    Direct Known Subclasses:
    AbstractNotification, RequestNot, TopicForwardNot

    public class CallbackNotification
    extends Notification
    Notification locally transmitting a CountDownCallback. The CountDownCallback is not persistent and is not transmitted to a remote destination. If sent to a remote destination, the CountDownCallback should be decremented either after the notification has been successfully transmitted, or if a transmission error has been raised. A CountDownCallback can be transmitted in several CallbackNotification instances. In that case it is incremented and decremented once for every CallbackNotification.
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability, fix with 5.15.0 value
        See Also:
        Constant Field Values
    • Constructor Detail

      • CallbackNotification

        public CallbackNotification()
      • CallbackNotification

        protected CallbackNotification​(boolean persistent)
    • Method Detail

      • hasCallback

        public boolean hasCallback()
        Returns true if a CountDownCallback is transmitted, false otherwise.
        Returns:
        true if a CountDownCallback is transmitted, false otherwise
      • passCallback

        public void passCallback​(CallbackNotification not)
        Passes the CountDownCallback to the specified CallbackNotification.
        Parameters:
        not - the CallbackNotification to be assigned with the CountDownCallback owned by this CallbackNotification
      • setCountDownCallback

        public void setCountDownCallback​(CountDownCallback countDownCallback)
        Sets the CountDownCallback to be transmitted by this CallbackNotification.
        Parameters:
        countDownCallback - the CountDownCallback to transmit
      • done

        public void done()
        Called if this CallbackNotification is successfully processed.
      • failed

        public void failed​(Throwable error)
        Called if this CallbackNotification raises an error.
        Parameters:
        error - the error that has been raised