uk.ac.ebi.intenz.webapp.util
Class EnzymeEntryMapperPool

java.lang.Object
  extended by uk.ac.ebi.intenz.webapp.util.EnzymeEntryMapperPool
All Implemented Interfaces:
org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>

public class EnzymeEntryMapperPool
extends Object
implements org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>

A pool of EnzymeEntryMappers.

Author:
rafa

Constructor Summary
EnzymeEntryMapperPool(int numOfObjs)
           
 
Method Summary
 void addObject()
           
 EnzymeEntryMapper borrowObject()
           
 void clear()
           
 void close()
           
 int getNumActive()
           
 int getNumIdle()
           
 void invalidateObject(EnzymeEntryMapper arg0)
           
 void returnObject(EnzymeEntryMapper arg0)
           
 void setFactory(org.apache.commons.pool.PoolableObjectFactory<EnzymeEntryMapper> arg0)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnzymeEntryMapperPool

public EnzymeEntryMapperPool(int numOfObjs)
                      throws IllegalArgumentException,
                             Exception
Throws:
IllegalArgumentException
Exception
Method Detail

addObject

public void addObject()
               throws Exception,
                      IllegalStateException,
                      UnsupportedOperationException
Specified by:
addObject in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
Exception
IllegalStateException
UnsupportedOperationException

borrowObject

public EnzymeEntryMapper borrowObject()
                               throws Exception,
                                      NoSuchElementException,
                                      IllegalStateException
Specified by:
borrowObject in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
Exception
NoSuchElementException
IllegalStateException

clear

public void clear()
           throws Exception,
                  UnsupportedOperationException
Specified by:
clear in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
Exception
UnsupportedOperationException

close

public void close()
           throws Exception
Specified by:
close in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
Exception

getNumActive

public int getNumActive()
                 throws UnsupportedOperationException
Specified by:
getNumActive in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
UnsupportedOperationException

getNumIdle

public int getNumIdle()
               throws UnsupportedOperationException
Specified by:
getNumIdle in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
UnsupportedOperationException

invalidateObject

public void invalidateObject(EnzymeEntryMapper arg0)
                      throws Exception
Specified by:
invalidateObject in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
Exception

returnObject

public void returnObject(EnzymeEntryMapper arg0)
                  throws Exception
Specified by:
returnObject in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
Exception

setFactory

@Deprecated
public void setFactory(org.apache.commons.pool.PoolableObjectFactory<EnzymeEntryMapper> arg0)
                throws IllegalStateException,
                       UnsupportedOperationException
Deprecated. 

Specified by:
setFactory in interface org.apache.commons.pool.ObjectPool<EnzymeEntryMapper>
Throws:
IllegalStateException
UnsupportedOperationException


Copyright © 2013 EMBL-EBI. All Rights Reserved.