Example usage for org.apache.commons.net.pop3 POP3Client setSendBufferSize

List of usage examples for org.apache.commons.net.pop3 POP3Client setSendBufferSize

Introduction

In this page you can find the example usage for org.apache.commons.net.pop3 POP3Client setSendBufferSize.

Prototype

public void setSendBufferSize(int size) throws SocketException 

Source Link

Document

Set the underlying socket send buffer size.

Usage

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;
}