All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gemstone.gemfire.internal.datasource.DataSourceResources Maven / Gradle / Ivy

There is a newer version: 2.0-BETA
Show newest version
/*
 * Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you
 * may not use this file except in compliance with the License. You
 * may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * permissions and limitations under the License. See accompanying
 * LICENSE file.
 */
/*
 * DataSourceResources.java
 *
 * Created on February 24, 2005, 12:42 PM
 */
package com.gemstone.gemfire.internal.datasource;

/**
 * @author tnegi
 * @author asif
 */
public interface DataSourceResources {

  /** Creates a new instance of DataSourceResources */
  public static final String JNDI_CONNECTION_POOL_DATA_SOURCE = "jdbc/ConnectionPoolDataSource";
  /* Default limit of maximum number of connection in the connection pool */
  public static final int CONNECTION_POOL_DEFAULT_MAX_LIMIT = 30;
  /* Default initial connection pool size */
  public static final int CONNECTION_POOL_DEFAULT_INIT_LIMIT = 10;
  /*
   * Default time in seconds after which the connections in the available pool
   * will expire
   */
  public static final int CONNECTION_POOL_DEFAULT_EXPIRATION_TIME = 600;
  //Default time in seconds after which the connections in the active cache
  // will be destroyed */
  public static final int CONNECTION_POOL_DEFAULT_ACTIVE_TIME_OUT = 120;
  //Default time in seconds after which the client thread for
  // retrieving connection will experience timeout
  public static final int CONNECTION_POOL_DEFAULT_CLIENT_TIME_OUT = 30;
  //Default Cleaner thread sleep time in seconds 30
  public static final int CLEANER_THREAD_SLEEP = 30;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy