Package de.adrianlange.mcd.model.impl
Class SrvRecordMailserverServiceImpl
java.lang.Object
de.adrianlange.mcd.model.impl.AbstractMailserverService
de.adrianlange.mcd.model.impl.SrvRecordMailserverServiceImpl
- All Implemented Interfaces:
MailserverService,SrvRecordMailserverService
public class SrvRecordMailserverServiceImpl
extends AbstractMailserverService
implements SrvRecordMailserverService
-
Constructor Summary
ConstructorsConstructorDescriptionSrvRecordMailserverServiceImpl(ConfigurationMethod configurationMethod, Protocol protocol, SocketType socketType, String host, Integer port, Integer weight) -
Method Summary
Methods inherited from class de.adrianlange.mcd.model.impl.AbstractMailserverService
getConfigurationMethod, getHost, getPort, getPriority, getProtocol, getSocketType, setConfigurationMethod, setHost, setPort, setPriority, setProtocol, setSocketTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.adrianlange.mcd.model.MailserverService
getConfigurationMethod, getHost, getPort, getPriority, getProtocol, getSocketType
-
Constructor Details
-
SrvRecordMailserverServiceImpl
public SrvRecordMailserverServiceImpl(ConfigurationMethod configurationMethod, Protocol protocol, SocketType socketType, String host, Integer port, Integer weight)
-
-
Method Details
-
getWeight
Description copied from interface:SrvRecordMailserverServiceIf 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.- Specified by:
getWeightin interfaceSrvRecordMailserverService- Returns:
- Weight or
nullif not configured.
-
setWeight
-
toString
- Overrides:
toStringin classAbstractMailserverService
-