Package oracle.kv

Examples of oracle.kv.RequestLimitConfig


        "requestLimit.maxActiveRequests", RequestLimitConfig.DEFAULT_MAX_ACTIVE_REQUESTS);
    int requestThresholdPercent = getPropertyInt(properties,
        "requestLimit.requestThresholdPercent", RequestLimitConfig.DEFAULT_REQUEST_THRESHOLD_PERCENT);
    int nodeLimitPercent = getPropertyInt(properties,
        "requestLimit.nodeLimitPercent", RequestLimitConfig.DEFAULT_NODE_LIMIT_PERCENT);
    RequestLimitConfig requestLimitConfig;
    /* It is said that the constructor could throw NodeRequestLimitException in Javadoc, the exception is not provided */
//    try {
      requestLimitConfig = new RequestLimitConfig(maxActiveRequests, requestThresholdPercent, nodeLimitPercent);
//    } catch (NodeRequestLimitException e) {
//      throw new DBException(e);
//    }
    config.setRequestLimit(requestLimitConfig);

View Full Code Here

TOP

Related Classes of oracle.kv.RequestLimitConfig

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.