List of usage examples for org.apache.commons.net.pop3 POP3Client setKeepAlive
public void setKeepAlive(boolean keepAlive) throws SocketException
From source file:com.adaptris.mail.Pop3ReceiverFactory.java
@Override POP3Client postConnectConfigure(POP3Client client) throws MailException { try {/*from w w w . j a v a 2 s . c om*/ if (getTcpNoDelay() != null) { client.setTcpNoDelay(getTcpNoDelay().booleanValue()); } if (getKeepAlive() != null) { client.setKeepAlive(getKeepAlive().booleanValue()); } } catch (SocketException e) { throw new MailException(e); } return client; }