Package mireka.transmission.immediate
Interface ImmediateSender
-
- All Known Implementing Classes:
DirectImmediateSender,IndirectImmediateSender
public interface ImmediateSenderAn ImmediateSender makes a single, synchronous attempt to deliver mail to a remote system. If it cannot transmit the mail to any of the MX hosts of the domain, then it throws an exception, it does not retry later.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsend(Mail mail)Synchronously transmits mail to a single domain.booleansingleDomainOnly()Returns true if the createdImmediateSenderrequires that all recipients of the mail to be sent have the same remote-part.
-
-
-
Method Detail
-
singleDomainOnly
boolean singleDomainOnly()
Returns true if the createdImmediateSenderrequires that all recipients of the mail to be sent have the same remote-part.
-
send
void send(Mail mail) throws SendException, RecipientsWereRejectedException, IllegalArgumentException, PostponeException
Synchronously transmits mail to a single domain.- Throws:
IllegalArgumentException- if the domains of the recipients are not the same, or if the recipient is the special global postmaster address, which has no absolute domain.PostponeException- if transmission to all of the hosts must be postponed, because all of them are assumed to be busy at this moment.SendExceptionRecipientsWereRejectedException
-
-