Package mireka.transmission.immediate
Class PostponeException
- Object
-
- Throwable
-
- Exception
-
- mireka.transmission.immediate.PostponeException
-
- All Implemented Interfaces:
java.io.Serializable
public class PostponeException extends ExceptionIndicates that the specific host, must not be connected at this time, because there are too many open connections to it or it recently failed. It can also indicate that all hosts of a domain has such problems. In such cases the transmission must be postponed. Note that this does not count as a retry in SMTP terms, because the connection have not even attempted.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PostponeException(int recommendedDelay, EnhancedStatus enhancedStatus, String message)Construct a new exception without a remote MTA, which must be set later.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnhancedStatusgetEnhancedStatus()Returns the enhanced status which should be reported if no more postponing is possible.intgetRecommendedDelay()Returns the recommended delay until the host will likely become available, in seconds.MtaAddressgetRemoteMta()Returns the remote MTA for which the connection must be postponed.voidsetRemoteMta(MtaAddress remoteMta)Sets the remote MTA which will be returned bygetRemoteMta()
-
-
-
Constructor Detail
-
PostponeException
public PostponeException(int recommendedDelay, EnhancedStatus enhancedStatus, String message)Construct a new exception without a remote MTA, which must be set later.
-
-
Method Detail
-
getRecommendedDelay
public int getRecommendedDelay()
Returns the recommended delay until the host will likely become available, in seconds.
-
getEnhancedStatus
public EnhancedStatus getEnhancedStatus()
Returns the enhanced status which should be reported if no more postponing is possible.
-
setRemoteMta
public void setRemoteMta(MtaAddress remoteMta)
Sets the remote MTA which will be returned bygetRemoteMta()
-
getRemoteMta
public MtaAddress getRemoteMta()
Returns the remote MTA for which the connection must be postponed.
-
-