Package de.adrianlange.mcd.model
Interface SrvRecordMailserverService
-
- All Superinterfaces:
MailserverService
- All Known Implementing Classes:
SrvRecordMailserverServiceImpl
public interface SrvRecordMailserverService extends MailserverService
Representation of a mail server configuration according to RFC 6186, searching for SRV records via DNS for the SMTP, IMAP and POP3 e-mail protocols.- Author:
- Adrian Lange
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegergetPriority()Priority of the mailserver service.IntegergetWeight()If two services have the same priority, their selection should be based on their weight.-
Methods inherited from interface de.adrianlange.mcd.model.MailserverService
getConfigurationMethod, getHost, getPort, getProtocol, getSocketType
-
-
-
-
Method Detail
-
getPriority
Integer getPriority()
Priority of the mailserver service. A service with a smaller priority should be preferred over a service with a larger priority. This also applies across protocols, for example, it can be made clear that the connection via IMAP should be preferred to one via POP3.- Returns:
- Priority of the mailserver service or
nullif not specified
-
getWeight
Integer getWeight()
If two services have the same priority, their selection should be based on their weight. If there are two services, one with weight 7 and one with weight 3, the first one should be taken in 70% of cases. This way a load balancing can be configured.- Returns:
- Weight or
nullif not configured.
-
-