Package org.apache.mina.api

Examples of org.apache.mina.api.ConfigurationException


    @Override
    public Boolean isTcpNoDelay() {
        try {
            return socket.getTcpNoDelay();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here


    public void setTcpNoDelay(boolean tcpNoDelay) {
        LOG.debug("set TCP no delay '{}' for session '{}'", tcpNoDelay, this);
        try {
            socket.setTcpNoDelay(tcpNoDelay);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public Boolean isReuseAddress() {
        try {
            return socket.getReuseAddress();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public void setReuseAddress(boolean reuseAddress) {
        LOG.debug("set reuse address '{}' for session '{}'", reuseAddress, this);
        try {
            socket.setReuseAddress(reuseAddress);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public Integer getReadBufferSize() {
        try {
            return socket.getReceiveBufferSize();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public void setReadBufferSize(int receiveBufferSize) {
        LOG.debug("set receive buffer size '{}' for session '{}'", receiveBufferSize, this);
        try {
            socket.setReceiveBufferSize(receiveBufferSize);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public Integer getSendBufferSize() {
        try {
            return socket.getSendBufferSize();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public void setSendBufferSize(int sendBufferSize) {
        LOG.debug("set send buffer size '{}' for session '{}'", sendBufferSize, this);
        try {
            socket.setSendBufferSize(sendBufferSize);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    @Override
    public int getTrafficClass() {
        try {
            return socket.getTrafficClass();
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

    public void setTrafficClass(int trafficClass) {
        LOG.debug("set traffic class '{}' for session '{}'", trafficClass, this);
        try {
            socket.setTrafficClass(trafficClass);
        } catch (SocketException e) {
            throw new ConfigurationException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.mina.api.ConfigurationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.