Class TemporaryMessagingException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TemporaryMessagingException
    extends javax.mail.MessagingException

    The exception represents a temporary error during message processing

    Since:
    10.0.42
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.time.Duration> getDelay()
      The method returns the optional time to delay the message processing.
      TemporaryMessagingException setDelay​(java.time.Duration delay)
      Sets a duration time to enforce a delay before processing the message again.
      • Methods inherited from class javax.mail.MessagingException

        getCause, getNextException, setNextException, toString
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TemporaryMessagingException

        public TemporaryMessagingException​(java.lang.String message)
        Parameters:
        message - the detail message
        Since:
        10.0.42
      • TemporaryMessagingException

        public TemporaryMessagingException​(java.lang.String message,
                                           java.lang.Exception e)
        Parameters:
        message - the detail message
        e - the embedded exception
        Since:
        10.0.42
    • Method Detail

      • getDelay

        public java.util.Optional<java.time.Duration> getDelay()
        The method returns the optional time to delay the message processing. If a delay is set the message will be processed in the next polling cycle after the specified delay time.
        Returns:
        the optional delay duration time
        Since:
        12.33
      • setDelay

        public TemporaryMessagingException setDelay​(java.time.Duration delay)
        Sets a duration time to enforce a delay before processing the message again.
        Parameters:
        delay - the delay duration to wait before processing the message again
        Returns:
        the instance for fluent usage
        Since:
        12.33