congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PoolUtils$ObjectPoolAdaptor.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.commons.pool.PoolUtils$ObjectPoolAdaptor
constructor

Best Java code snippets using org.apache.commons.pool.PoolUtils$ObjectPoolAdaptor.<init> (Showing top 5 results out of 315)

origin: org.apache.commons/pool

/**
 * Adapt a <code>KeyedObjectPool</code> instance to work where an <code>ObjectPool</code> is needed using the
 * specified <code>key</code> when delegating.
 *
 * @param <V> the type of object
 * @param keyedPool the {@link KeyedObjectPool} to delegate to.
 * @param key the key to use when delegating.
 * @return an {@link ObjectPool} that delegates to <code>keyedPool</code> with the specified key.
 * @throws IllegalArgumentException when <code>keyedPool</code> or <code>key</code> is <code>null</code>.
 * @see #adapt(KeyedObjectPool)
 * @since Pool 1.3
 */
public static <V> ObjectPool<V> adapt(final KeyedObjectPool<Object, V> keyedPool, final Object key) throws IllegalArgumentException {
  return new ObjectPoolAdaptor<V>(keyedPool, key);
}
origin: org.apache.openjpa/openjpa-all

/**
 * Adapt a <code>KeyedObjectPool</code> instance to work where an <code>ObjectPool</code> is needed using the
 * specified <code>key</code> when delegating.
 *
 * @param <V> the type of object
 * @param keyedPool the {@link KeyedObjectPool} to delegate to.
 * @param key the key to use when delegating.
 * @return an {@link ObjectPool} that delegates to <code>keyedPool</code> with the specified key.
 * @throws IllegalArgumentException when <code>keyedPool</code> or <code>key</code> is <code>null</code>.
 * @see #adapt(KeyedObjectPool)
 * @since Pool 1.3
 */
public static <V> ObjectPool<V> adapt(final KeyedObjectPool<Object, V> keyedPool, final Object key) throws IllegalArgumentException {
  return new ObjectPoolAdaptor<V>(keyedPool, key);
}
origin: org.apache.commons/com.springsource.org.apache.commons.pool

/**
 * Adapt a <code>KeyedObjectPool</code> instance to work where an <code>ObjectPool</code> is needed using the
 * specified <code>key</code> when delegating.
 *
 * @param keyedPool the {@link KeyedObjectPool} to delegate to.
 * @param key the key to use when delegating.
 * @return an {@link ObjectPool} that delegates to <code>keyedPool</code> with the specified key.
 * @throws IllegalArgumentException when <code>keyedPool</code> or <code>key</code> is <code>null</code>.
 * @see #adapt(KeyedObjectPool)
 * @since Pool 1.3
 */
public static ObjectPool adapt(final KeyedObjectPool keyedPool, final Object key) throws IllegalArgumentException {
  return new ObjectPoolAdaptor(keyedPool, key);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-pool

/**
 * Adapt a <code>KeyedObjectPool</code> instance to work where an <code>ObjectPool</code> is needed using the
 * specified <code>key</code> when delegating.
 *
 * @param keyedPool the {@link KeyedObjectPool} to delegate to.
 * @param key the key to use when delegating.
 * @return an {@link ObjectPool} that delegates to <code>keyedPool</code> with the specified key.
 * @throws IllegalArgumentException when <code>keyedPool</code> or <code>key</code> is <code>null</code>.
 * @see #adapt(KeyedObjectPool)
 * @since Pool 1.3
 */
public static ObjectPool adapt(final KeyedObjectPool keyedPool, final Object key) throws IllegalArgumentException {
  return new ObjectPoolAdaptor(keyedPool, key);
}
origin: commons-pool/commons-pool

/**
 * Adapt a <code>KeyedObjectPool</code> instance to work where an <code>ObjectPool</code> is needed using the
 * specified <code>key</code> when delegating.
 *
 * @param <V> the type of object
 * @param keyedPool the {@link KeyedObjectPool} to delegate to.
 * @param key the key to use when delegating.
 * @return an {@link ObjectPool} that delegates to <code>keyedPool</code> with the specified key.
 * @throws IllegalArgumentException when <code>keyedPool</code> or <code>key</code> is <code>null</code>.
 * @see #adapt(KeyedObjectPool)
 * @since Pool 1.3
 */
public static <V> ObjectPool<V> adapt(final KeyedObjectPool<Object, V> keyedPool, final Object key) throws IllegalArgumentException {
  return new ObjectPoolAdaptor<V>(keyedPool, key);
}
org.apache.commons.poolPoolUtils$ObjectPoolAdaptor<init>

Javadoc

Create a new ObjectPoolAdaptor using the provided KeyedObjectPool and fixed key.

Popular methods of PoolUtils$ObjectPoolAdaptor

    Popular in Java

    • Finding current android device location
    • scheduleAtFixedRate (ScheduledExecutorService)
    • onCreateOptionsMenu (Activity)
    • onRequestPermissionsResult (Fragment)
    • URI (java.net)
      A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
    • URLEncoder (java.net)
      This class is used to encode a string using the format required by application/x-www-form-urlencoded
    • Calendar (java.util)
      Calendar is an abstract base class for converting between a Date object and a set of integer fields
    • Vector (java.util)
      Vector is an implementation of List, backed by an array and synchronized. All optional operations in
    • Collectors (java.util.stream)
    • HttpServletRequest (javax.servlet.http)
      Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
    • Top 25 Plugins for Webstorm
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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