public class BackendServer
extends Object
Upstream
.Constructor and Description |
---|
BackendServer() |
Modifier and Type | Method and Description |
---|---|
SmtpClient |
createClient() |
ClientFactory |
getClientFactory() |
String |
getHost() |
String |
getPassword() |
int |
getPort() |
String |
getUser() |
double |
getWeight() |
boolean |
isBackup() |
void |
setBackup(boolean backup)
True indicates that the server should only be used in an Upstream if all
non-backup servers failed.
|
void |
setClientFactory(ClientFactory clientFactory) |
void |
setHost(String host)
Sets the domain name or IP address of the backend server.
|
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setUser(String user) |
void |
setWeight(double weight)
Relative weight of the server in an Upstream.
|
String |
toString() |
public SmtpClient createClient() throws SendException
SendException
- if the IP address of the backend server could not be
determined based on its domain name.public String toString()
toString
in class Object
public String getHost()
public void setHost(String host)
Examples for legal values:
public ClientFactory getClientFactory()
@Inject public void setClientFactory(ClientFactory clientFactory)
public int getPort()
public void setPort(int port)
public String getUser()
public void setUser(String user)
public String getPassword()
public void setPassword(String password)
public double getWeight()
public void setWeight(double weight)
public boolean isBackup()
public void setBackup(boolean backup)