|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.runtime.Pool
jist.runtime.Pool.ContinuationPool
public static class Pool.ContinuationPool
Implements an object pool for the massively used Continuation objects. Note that, for performance reasons, this class is intentionally NOT thread-safe.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jist.runtime.Pool |
|---|
Pool.ArrayPool, Pool.ContinuationPool, Pool.EventPool |
| Constructor Summary | |
|---|---|
Pool.ContinuationPool(int size)
Create new object pool of fixed given size. |
|
| Method Summary | |
|---|---|
Event.Continuation |
get()
Return a Continuation from pool, or create new one if pool empty. |
void |
put(Event.Continuation cont)
Place a free (otherwise unused) Continuation object back in the pool, if there is space. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pool.ContinuationPool(int size)
size - object pool size| Method Detail |
|---|
public Event.Continuation get()
public void put(Event.Continuation cont)
cont - reference to a free Continuation object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||