|
com.im.df/1 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.df.util.GenericInstancesProvider<T>
public abstract class GenericInstancesProvider<T>
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 |
|---|
public GenericInstancesProvider(String poolName,
GenericInstancesProvider.Type type,
String instanceName,
int initInstancesCount,
int initCreateDelayInSec)
| Method Detail |
|---|
public T getNew()
protected abstract T createNewInstance()
|
com.im.df/1 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||