Class TemporaryMessagingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.mail.MessagingException
-
- com.novomind.ecom.api.imail.exception.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
-
-
Constructor Summary
Constructors Constructor Description TemporaryMessagingException(java.lang.String message)
TemporaryMessagingException(java.lang.String message, java.lang.Exception e)
-
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
-
-
-
-
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 messagee
- 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
-
-