TorqueBox 3.1.2

org.torquebox.core.pool
Class DefaultPoolListener<T>

java.lang.Object
  extended by org.torquebox.core.pool.DefaultPoolListener<T>
All Implemented Interfaces:
PoolListener<T>
Direct Known Subclasses:
PoolManager

public class DefaultPoolListener<T>
extends Object
implements PoolListener<T>


Constructor Summary
DefaultPoolListener()
           
 
Method Summary
 void instanceBorrowed(T instance, int totalInstances, int availableNow)
           
 void instanceDrained(T instance, int totalInstances, int availableNow)
           
 void instanceFilled(T instance, int totalInstances, int availableNow)
           
 void instanceReleased(T instance, int totalInstances, int availableNow)
           
 void instanceRequested(int totalInstances, int availableNow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPoolListener

public DefaultPoolListener()
Method Detail

instanceBorrowed

public void instanceBorrowed(T instance,
                             int totalInstances,
                             int availableNow)
Specified by:
instanceBorrowed in interface PoolListener<T>

instanceDrained

public void instanceDrained(T instance,
                            int totalInstances,
                            int availableNow)
Specified by:
instanceDrained in interface PoolListener<T>

instanceFilled

public void instanceFilled(T instance,
                           int totalInstances,
                           int availableNow)
Specified by:
instanceFilled in interface PoolListener<T>

instanceReleased

public void instanceReleased(T instance,
                             int totalInstances,
                             int availableNow)
Specified by:
instanceReleased in interface PoolListener<T>

instanceRequested

public void instanceRequested(int totalInstances,
                              int availableNow)
Specified by:
instanceRequested in interface PoolListener<T>

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.