Package com.caringo.client.request

Examples of com.caringo.client.request.LocatorRedirectHandler


     *            be allowed.
     * @param maxRetries -
     *            Maximum number of times to retry a command on communication or server failure.
     */
    public ScspClient(String[] hosts, int port, int maxConnectionPoolSize, int maxRetries) {
        this.locator = new LocatorRedirectHandler(new StaticLocator(hosts, port, LOCATOR_RETRY_TIMEOUT));
        this.maxPoolSize = maxConnectionPoolSize;
        this.maxRetries = maxRetries;
        this.validating = false;
        this.connectionTimeout = CONNECTION_TIMEOUT;
        this.poolTimeout = CM_IDLE_TIMEOUT;
View Full Code Here


     *            The amount of time seconds an idle connection will be stored for reuse.
     * @param locatorRetryTimeout -
     *            The number of seconds after a node is found dead that it will be retried.
     */
    public ScspClient(String[] hosts, int port, int maxConnectionPoolSize, int maxRetries, int connectionTimeout, int poolTimeout, int locatorRetryTimeout) {
        this.locator = new LocatorRedirectHandler(new StaticLocator(hosts, port, locatorRetryTimeout));
        this.maxPoolSize = maxConnectionPoolSize;
        this.maxRetries = maxRetries;
        this.validating = false;
        this.connectionTimeout = connectionTimeout * 1000;
        this.poolTimeout = poolTimeout * 1000;
 
View Full Code Here

     *            Idle timeout for a request in seconds.
     * @param poolTimeout -
     *            The amount of time seconds an idle connection will be stored for reuse.
     */
    public ScspClient(Locator locator, int port, int maxConnectionPoolSize, int maxRetries, int connectionTimeout, int poolTimeout) {
        this.locator = new LocatorRedirectHandler(locator);
        this.maxPoolSize = maxConnectionPoolSize;
        this.maxRetries = maxRetries;
        this.validating = false;
        this.connectionTimeout = connectionTimeout * 1000;
        this.poolTimeout = poolTimeout * 1000;
 
View Full Code Here

           
            if (0 < clusterName.length()) {
                metaData.addValue("Scsp-Proxy-Cluster", clusterName);
            }

            ScspRequestHandler client = new ScspRequestHandler(httpCli, new LocatorRedirectHandler(subLocator), 3, 300, null);
            BasicScspResponseOutputStream output = new BasicScspResponseOutputStream(null);

            try {
                client.read("", metaData, "", output);
            }
View Full Code Here

TOP

Related Classes of com.caringo.client.request.LocatorRedirectHandler

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.