QuickServer
v1.4.1

org.quickserver.util.pool.thread
Class ThreadObjectFactory

java.lang.Object
  |
  +--org.apache.commons.pool.BasePoolableObjectFactory
        |
        +--org.quickserver.util.pool.thread.ThreadObjectFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory

public class ThreadObjectFactory
extends org.apache.commons.pool.BasePoolableObjectFactory

A factory for creating ClientThread instances.

Since:
1.3
Author:
Akshathkumar Shety

Constructor Summary
ThreadObjectFactory(ClientPool pool)
           
 
Method Summary
 void activateObject(java.lang.Object obj)
           
 void destroyObject(java.lang.Object obj)
           
 java.lang.Object makeObject()
           
 void passivateObject(java.lang.Object obj)
           
 boolean validateObject(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadObjectFactory

public ThreadObjectFactory(ClientPool pool)
Method Detail

makeObject

public java.lang.Object makeObject()
Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory
Specified by:
makeObject in class org.apache.commons.pool.BasePoolableObjectFactory

passivateObject

public void passivateObject(java.lang.Object obj)
Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
Overrides:
passivateObject in class org.apache.commons.pool.BasePoolableObjectFactory

activateObject

public void activateObject(java.lang.Object obj)
Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory
Overrides:
activateObject in class org.apache.commons.pool.BasePoolableObjectFactory

destroyObject

public void destroyObject(java.lang.Object obj)
Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
Overrides:
destroyObject in class org.apache.commons.pool.BasePoolableObjectFactory

validateObject

public boolean validateObject(java.lang.Object obj)
Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory
Overrides:
validateObject in class org.apache.commons.pool.BasePoolableObjectFactory

QuickServer
v1.4.1

Copyright © 2003-2004 QuickServer.org