Tabnine Logo
ConnectionPool.setCaching
Code IndexAdd Tabnine to your IDE (free)

How to use
setCaching
method
in
snaq.db.ConnectionPool

Best Java code snippets using snaq.db.ConnectionPool.setCaching (Showing top 3 results out of 315)

origin: zendesk/maxwell

this.maxwellConnectionPool.setCaching(false);
origin: net.snaq/dbpool

/**
 * Creates a new {@code ConnectionPool} instance.
 * @param name pool name
 * @param minPool minimum number of pooled connections, or 0 for none
 * @param maxPool maximum number of pooled connections, or 0 for none
 * @param maxSize maximum number of possible connections, or 0 for no limit
 * @param idleTimeout idle timeout (seconds) for idle pooled connections, or 0 for no timeout
 * @param url JDBC connection URL
 * @param username database username
 * @param password password for the database username supplied
 */
public ConnectionPool(String name, int minPool, int maxPool, int maxSize, long idleTimeout, String url, String username, String password)
{
 super(name, minPool, maxPool, maxSize, idleTimeout);
 this.url = url;
 this.user = username;
 this.pass = password;
 this.props = null;
 setCaching(true);
 addObjectPoolListener(new EventRelay<>());
}
origin: net.snaq/dbpool

pool.setCaching(!noCache);
if (async)
 log_info("Enabling asynchronous destruction on pool " + poolName);
snaq.dbConnectionPoolsetCaching

Javadoc

Determines whether to perform statement caching. This applies to all types of statements (normal, prepared, callable).

Popular methods of ConnectionPool

  • <init>
    Creates a new ConnectionPool instance (with minPool=0).
  • getConnection
    Gets a Connection from the pool, waiting a maximum of timeout milliseconds for one to become availab
  • release
  • addConnectionPoolListener
    Adds a ConnectionPoolListener to the event notification list.
  • addObjectPoolListener
  • firePoolEvent
    Fires an ConnectionPoolEvent to all listeners. 'type' should be one of ConnectionPoolEvent types.
  • freeConnection
    Returns a Connection to the pool (for internal use only). Connections obtained from the pool should
  • getCustomLogger
  • getIdleTimeout
  • getMaxPool
  • getMaxSize
  • getMinPool
  • getMaxSize,
  • getMinPool,
  • getName,
  • init,
  • isRecycleAfterDelegateUse,
  • log_debug,
  • log_info,
  • log_warn,
  • registerMBean

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now