|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.net.Pool
org.sapia.ubik.mcast.ByteArrayPool
public class ByteArrayPool
This class implements a pool of byte arrays.
| Field Summary |
|---|
| Fields inherited from class org.sapia.ubik.net.Pool |
|---|
_currentCount, _lastUsageTime, _maxSize, _objects, NO_MAX, NO_TIME_OUT |
| Constructor Summary | |
|---|---|
ByteArrayPool(int bufSize)
Creates a new instance of ByteArrayPool |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
doNewObject()
This template method should be overridden by inheriting classes to provide object instances that will be pooled. |
int |
getBufSize()
|
protected java.lang.Object |
onAcquire(java.lang.Object o)
|
void |
setBufSize(int bufSize)
|
| Methods inherited from class org.sapia.ubik.net.Pool |
|---|
acquire, acquire, acquireCreate, cleanup, fill, getCreatedCount, getLastUsageTime, onRelease, release, shrinkTo, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayPool(int bufSize)
| Method Detail |
|---|
public void setBufSize(int bufSize)
public int getBufSize()
protected java.lang.Object onAcquire(java.lang.Object o)
throws java.lang.Exception
onAcquire in class Pooljava.lang.Exception
protected java.lang.Object doNewObject()
throws java.lang.Exception
Pool
doNewObject in class PoolObject to pool.
java.lang.Exception - if an error occurs while creating the object to be
returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||