List of usage examples for org.apache.commons.net.pop3 POP3Client setSendBufferSize
public void setSendBufferSize(int size) throws SocketException
From source file:com.adaptris.mail.Pop3ReceiverFactory.java
@Override POP3Client preConnectConfigure(POP3Client client) throws MailException { try {//from w ww . j a v a 2 s.c o m if (getConnectTimeout() != null) { client.setConnectTimeout(getConnectTimeout().intValue()); } if (getReceiveBufferSize() != null) { client.setReceiveBufferSize(getReceiveBufferSize().intValue()); } if (getSendBufferSize() != null) { client.setSendBufferSize(getSendBufferSize().intValue()); } if (getTimeout() != null) { client.setDefaultTimeout(getTimeout().intValue()); } } catch (SocketException e) { throw new MailException(e); } return client; }