Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.pool.impl
Class TestSoftRefOutOfMemory.LargePoolableObjectFactory  view TestSoftRefOutOfMemory.LargePoolableObjectFactory download TestSoftRefOutOfMemory.LargePoolableObjectFactory.java

java.lang.Object
  extended byorg.apache.commons.pool.impl.TestSoftRefOutOfMemory.LargePoolableObjectFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory
Enclosing class:
TestSoftRefOutOfMemory

public static class TestSoftRefOutOfMemory.LargePoolableObjectFactory
extends java.lang.Object
implements org.apache.commons.pool.PoolableObjectFactory


Field Summary
private  java.lang.String buffer
           
private  int counter
           
 
Constructor Summary
TestSoftRefOutOfMemory.LargePoolableObjectFactory(int size)
           
 
Method Summary
 void activateObject(java.lang.Object obj)
          Reinitialize an instance to be returned by the pool.
 void destroyObject(java.lang.Object obj)
          Destroys an instance no longer needed by the pool.
 java.lang.Object makeObject()
          Creates an instance that can be returned by the pool.
 void passivateObject(java.lang.Object obj)
          Uninitialize an instance to be returned to the pool.
 boolean validateObject(java.lang.Object obj)
          Ensures that the instance is safe to be returned by the pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

private java.lang.String buffer

counter

private int counter
Constructor Detail

TestSoftRefOutOfMemory.LargePoolableObjectFactory

public TestSoftRefOutOfMemory.LargePoolableObjectFactory(int size)
Method Detail

makeObject

public java.lang.Object makeObject()
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Creates an instance that can be returned by the pool.

Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory

validateObject

public boolean validateObject(java.lang.Object obj)
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Ensures that the instance is safe to be returned by the pool. Returns false if this object should be destroyed.

Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory

activateObject

public void activateObject(java.lang.Object obj)
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Reinitialize an instance to be returned by the pool.

Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory

passivateObject

public void passivateObject(java.lang.Object obj)
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Uninitialize an instance to be returned to the pool.

Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory

destroyObject

public void destroyObject(java.lang.Object obj)
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Destroys an instance no longer needed by the pool.

Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory