com.im.df/1 5.8

com.im.df.util
Class GenericInstancesProvider<T>

java.lang.Object
  extended by com.im.df.util.GenericInstancesProvider<T>

public abstract class GenericInstancesProvider<T>
extends Object

Cache for generic type of instances created ahead, before they are needed. This class can be used as provider for instances which take too long time to create.


Nested Class Summary
static class GenericInstancesProvider.Type
           
 
Constructor Summary
GenericInstancesProvider(String poolName, GenericInstancesProvider.Type type, String instanceName, int initInstancesCount, int initCreateDelayInSec)
           
 
Method Summary
protected abstract  T createNewInstance()
           
 T getNew()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericInstancesProvider

public GenericInstancesProvider(String poolName,
                                GenericInstancesProvider.Type type,
                                String instanceName,
                                int initInstancesCount,
                                int initCreateDelayInSec)
Method Detail

getNew

public T getNew()

createNewInstance

protected abstract T createNewInstance()

com.im.df/1 5.8