Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7A6CB200D38 for ; Sat, 28 Oct 2017 20:29:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 792C7160BDC; Sat, 28 Oct 2017 18:29:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BB872160BFA for ; Sat, 28 Oct 2017 20:29:25 +0200 (CEST) Received: (qmail 82233 invoked by uid 500); 28 Oct 2017 18:29:24 -0000 Mailing-List: contact notifications-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list notifications@commons.apache.org Received: (qmail 82125 invoked by uid 99); 28 Oct 2017 18:29:24 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Oct 2017 18:29:24 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id DAA4A3A15FB for ; Sat, 28 Oct 2017 18:29:18 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1020166 [26/44] - in /websites/production/commons/content/proper/commons-pool: ./ api-2.4.3/ api-2.4.3/org/ api-2.4.3/org/apache/ api-2.4.3/org/apache/commons/ api-2.4.3/org/apache/commons/pool2/ api-2.4.3/org/apache/commons/pool2/class-us... Date: Sat, 28 Oct 2017 18:29:13 -0000 To: notifications@commons.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20171028182918.DAA4A3A15FB@svn01-us-west.apache.org> archived-at: Sat, 28 Oct 2017 18:29:28 -0000 Added: websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/CglibProxySource.html ============================================================================== --- websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/CglibProxySource.html (added) +++ websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/CglibProxySource.html Sat Oct 28 18:29:09 2017 @@ -0,0 +1,347 @@ + + + + + + +CglibProxySource (Apache Commons Pool 2.4.3 API) + + + + + + + + + + + +
+
org.apache.commons.pool2.proxy
+

Class CglibProxySource<T>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.apache.commons.pool2.proxy.CglibProxySource<T>
    • +
    +
  • +
+
+
    +
  • +
    +
    Type Parameters:
    +
    T - type of the pooled object to be proxied
    +
    +
    +
    +
    public class CglibProxySource<T>
    +extends Object
    +
    Provides proxy objects using CGLib.
    +
    +
    Since:
    +
    2.0
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        CglibProxySource

        +
        public CglibProxySource(Class<? extends T> superclass)
        +
        Create a new proxy source for the given class.
        +
        +
        Parameters:
        +
        superclass - The class to proxy
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        createProxy

        +
        public T createProxy(T pooledObject,
        +                     UsageTracking<T> usageTracking)
        +
        Create a new proxy object, wrapping the given pooled object.
        +
        +
        Parameters:
        +
        pooledObject - The object to wrap
        +
        usageTracking - The instance, if any (usually the object pool) to + be provided with usage tracking information for this + wrapped object
        +
        Returns:
        +
        the new proxy object
        +
        +
      • +
      + + + + + +
        +
      • +

        resolveProxy

        +
        public T resolveProxy(T proxy)
        +
        Obtain the wrapped object from the given proxy.
        +
        +
        Parameters:
        +
        proxy - The proxy object
        +
        Returns:
        +
        The pooled object wrapped by the given proxy
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/JdkProxySource.html ============================================================================== --- websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/JdkProxySource.html (added) +++ websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/JdkProxySource.html Sat Oct 28 18:29:09 2017 @@ -0,0 +1,350 @@ + + + + + + +JdkProxySource (Apache Commons Pool 2.4.3 API) + + + + + + + + + + + +
+
org.apache.commons.pool2.proxy
+

Class JdkProxySource<T>

+
+
+ +
+
    +
  • +
    +
    Type Parameters:
    +
    T - type of the pooled object to be proxied
    +
    +
    +
    +
    public class JdkProxySource<T>
    +extends Object
    +
    Provides proxy objects using Java reflection.
    +
    +
    Since:
    +
    2.0
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        JdkProxySource

        +
        public JdkProxySource(ClassLoader classLoader,
        +                      Class<?>[] interfaces)
        +
        Create a new proxy source for the given interfaces.
        +
        +
        Parameters:
        +
        classLoader - The class loader with which to create the proxy
        +
        interfaces - The interfaces to proxy
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        createProxy

        +
        public T createProxy(T pooledObject,
        +                     UsageTracking<T> usageTracking)
        +
        Create a new proxy object, wrapping the given pooled object.
        +
        +
        Parameters:
        +
        pooledObject - The object to wrap
        +
        usageTracking - The instance, if any (usually the object pool) to + be provided with usage tracking information for this + wrapped object
        +
        Returns:
        +
        the new proxy object
        +
        +
      • +
      + + + + + +
        +
      • +

        resolveProxy

        +
        public T resolveProxy(T proxy)
        +
        Obtain the wrapped object from the given proxy.
        +
        +
        Parameters:
        +
        proxy - The proxy object
        +
        Returns:
        +
        The pooled object wrapped by the given proxy
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.

+ + Added: websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/ProxiedKeyedObjectPool.html ============================================================================== --- websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/ProxiedKeyedObjectPool.html (added) +++ websites/production/commons/content/proper/commons-pool/api-2.4.3/org/apache/commons/pool2/proxy/ProxiedKeyedObjectPool.html Sat Oct 28 18:29:09 2017 @@ -0,0 +1,677 @@ + + + + + + +ProxiedKeyedObjectPool (Apache Commons Pool 2.4.3 API) + + + + + + + + + + + +
+
org.apache.commons.pool2.proxy
+

Class ProxiedKeyedObjectPool<K,V>

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • org.apache.commons.pool2.proxy.ProxiedKeyedObjectPool<K,V>
    • +
    +
  • +
+
+
    +
  • +
    +
    Type Parameters:
    +
    K - type of the key
    +
    V - type of the pooled object
    +
    +
    +
    All Implemented Interfaces:
    +
    KeyedObjectPool<K,V>
    +
    +
    +
    +
    public class ProxiedKeyedObjectPool<K,V>
    +extends Object
    +implements KeyedObjectPool<K,V>
    +
    Create a new keyed object pool where the pooled objects are wrapped in + proxies allowing better control of pooled objects and in particular the + prevention of the continued use of an object by a client after that client + returns the object to the pool.
    +
    +
    Since:
    +
    2.0
    +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      ProxiedKeyedObjectPool(KeyedObjectPool<K,V> pool, + org.apache.commons.pool2.proxy.ProxySource<V> proxySource) +
      Create a new proxied object pool.
      +
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      voidaddObject(K key) +
      Create an object using the factory or + other implementation dependent mechanism, passivate it, and then place it + in the idle object pool.
      +
      VborrowObject(K key) +
      Obtains an instance from this pool for the specified key.
      +
      voidclear() +
      Clears the pool, removing all pooled instances (optional operation).
      +
      voidclear(K key) +
      Clears the specified pool, removing all pooled instances corresponding to + the given key (optional operation).
      +
      voidclose() +
      Close this pool, and free any resources associated with it.
      +
      intgetNumActive() +
      Returns the total number of instances current borrowed from this pool but + not yet returned.
      +
      intgetNumActive(K key) +
      Returns the number of instances currently borrowed from but not yet + returned to the pool corresponding to the given key.
      +
      intgetNumIdle() +
      Returns the total number of instances currently idle in this pool.
      +
      intgetNumIdle(K key) +
      Returns the number of instances corresponding to the given + key currently idle in this pool.
      +
      voidinvalidateObject(K key, + V proxy) +
      Invalidates an object from the pool.
      +
      voidreturnObject(K key, + V proxy) +
      Return an instance to the pool.
      +
      StringtoString() 
      + +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        ProxiedKeyedObjectPool

        +
        public ProxiedKeyedObjectPool(KeyedObjectPool<K,V> pool,
        +                              org.apache.commons.pool2.proxy.ProxySource<V> proxySource)
        +
        Create a new proxied object pool.
        +
        +
        Parameters:
        +
        pool - The object pool to wrap
        +
        proxySource - The source of the proxy objects
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + + + +
        +
      • +

        borrowObject

        +
        public V borrowObject(K key)
        +               throws Exception,
        +                      NoSuchElementException,
        +                      IllegalStateException
        +
        Description copied from interface: KeyedObjectPool
        +
        Obtains an instance from this pool for the specified key. +

        + Instances returned from this method will have been either newly created + with makeObject or will be + a previously idle object and have been activated with + activateObject and then + (optionally) validated with + validateObject. +

        + By contract, clients must return the borrowed object + using returnObject, + invalidateObject, or a related method as + defined in an implementation or sub-interface, using a key + that is equivalent to the one used to borrow the + instance in the first place. +

        + The behaviour of this method when the pool has been exhausted is not + strictly specified (although it may be specified by implementations).

        +
        +
        Specified by:
        +
        borrowObject in interface KeyedObjectPool<K,V>
        +
        Parameters:
        +
        key - the key used to obtain the object
        +
        Returns:
        +
        an instance from this pool.
        +
        Throws:
        +
        IllegalStateException - after close has been called on this pool
        +
        Exception - when makeObject throws an exception
        +
        NoSuchElementException - when the pool is exhausted and cannot or will not return + another instance
        +
        +
      • +
      + + + + + +
        +
      • +

        returnObject

        +
        public void returnObject(K key,
        +                         V proxy)
        +                  throws Exception
        +
        Description copied from interface: KeyedObjectPool
        +
        Return an instance to the pool. By contract, obj + must have been obtained using + borrowObject or a related method as defined in an + implementation or sub-interface using a key that is + equivalent to the one used to borrow the instance in the first place.
        +
        +
        Specified by:
        +
        returnObject in interface KeyedObjectPool<K,V>
        +
        Parameters:
        +
        key - the key used to obtain the object
        +
        proxy - a borrowed instance to be returned.
        +
        Throws:
        +
        IllegalStateException - if an attempt is made to return an object to the pool that + is in any state other than allocated (i.e. borrowed). + Attempting to return an object more than once or attempting + to return an object that was never borrowed from the pool + will trigger this exception.
        +
        Exception - if an instance cannot be returned to the pool
        +
        +
      • +
      + + + + + +
        +
      • +

        invalidateObject

        +
        public void invalidateObject(K key,
        +                             V proxy)
        +                      throws Exception
        +
        Description copied from interface: KeyedObjectPool
        +
        Invalidates an object from the pool. +

        + By contract, obj must have been obtained + using borrowObject or a related method as defined + in an implementation or sub-interface using a key that is + equivalent to the one used to borrow the Object in the first + place. +

        + This method should be used when an object that has been borrowed is + determined (due to an exception or other problem) to be invalid.

        +
        +
        Specified by:
        +
        invalidateObject in interface KeyedObjectPool<K,V>
        +
        Parameters:
        +
        key - the key used to obtain the object
        +
        proxy - a borrowed instance to be returned.
        +
        Throws:
        +
        Exception - if the instance cannot be invalidated
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        getNumIdle

        +
        public int getNumIdle(K key)
        +
        Description copied from interface: KeyedObjectPool
        +
        Returns the number of instances corresponding to the given + key currently idle in this pool. Returns a negative value if + this information is not available.
        +
        +
        Specified by:
        +
        getNumIdle in interface KeyedObjectPool<K,V>
        +
        Parameters:
        +
        key - the key to query
        +
        Returns:
        +
        the number of instances corresponding to the given + key currently idle in this pool.
        +
        +
      • +
      + + + + + +
        +
      • +

        getNumActive

        +
        public int getNumActive(K key)
        +
        Description copied from interface: KeyedObjectPool
        +
        Returns the number of instances currently borrowed from but not yet + returned to the pool corresponding to the given key. + Returns a negative value if this information is not available.
        +
        +
        Specified by:
        +
        getNumActive in interface KeyedObjectPool<K,V>
        +
        Parameters:
        +
        key - the key to query
        +
        Returns:
        +
        the number of instances currently borrowed from but not yet + returned to the pool corresponding to the given key. +=
        +
        +
      • +
      + + + +
        +
      • +

        getNumIdle

        +
        public int getNumIdle()
        +
        Description copied from interface: KeyedObjectPool
        +
        Returns the total number of instances currently idle in this pool. + Returns a negative value if this information is not available.
        +
        +
        Specified by:
        +
        getNumIdle in interface KeyedObjectPool<K,V>
        +
        Returns:
        +
        the total number of instances currently idle in this pool. + =
        +
        +
      • +
      + + + +
        +
      • +

        getNumActive

        +
        public int getNumActive()
        +
        Description copied from interface: KeyedObjectPool
        +
        Returns the total number of instances current borrowed from this pool but + not yet returned. Returns a negative value if this information is not + available.
        +
        +
        Specified by:
        +
        getNumActive in interface KeyedObjectPool<K,V>
        +
        Returns:
        +
        the total number of instances current borrowed from this pool but + not yet returned.
        +
        +
      • +
      + + + + + + + + + + + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.

+ +