Package org.identityconnectors.common.pooling

Examples of org.identityconnectors.common.pooling.ObjectPoolConfiguration


import org.identityconnectors.common.pooling.ObjectPoolConfiguration;

public final class ConnPoolConfUtil {

    public static ConnPoolConf getConnPoolConf(final ConnPoolConfTO cpcto) {
        ObjectPoolConfiguration opc = new ObjectPoolConfiguration();
        ConnPoolConf cpc = new ConnPoolConf();

        cpc.setMaxIdle(cpcto.getMaxIdle() == null ? opc.getMaxIdle() : cpcto.getMaxIdle());
        cpc.setMaxObjects(cpcto.getMaxObjects() == null ? opc.getMaxObjects() : cpcto.getMaxObjects());
        cpc.setMaxWait(cpcto.getMaxWait() == null ? opc.getMaxWait() : cpcto.getMaxWait());
        cpc.setMinEvictableIdleTimeMillis(cpcto.getMinEvictableIdleTimeMillis() == null
                ? opc.getMinEvictableIdleTimeMillis() : cpcto.getMinEvictableIdleTimeMillis());
        cpc.setMinIdle(cpcto.getMinIdle() == null ? opc.getMinIdle() : cpcto.getMinIdle());

        return cpc;
    }
View Full Code Here


        return cpc;
    }

    public static ObjectPoolConfiguration getObjectPoolConfiguration(final ConnPoolConf cpc) {
        ObjectPoolConfiguration opc = new ObjectPoolConfiguration();
        updateObjectPoolConfiguration(opc, cpc);
        return opc;
    }
View Full Code Here

TOP

Related Classes of org.identityconnectors.common.pooling.ObjectPoolConfiguration

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.