|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - pool item typeI - identifier typepublic interface IPoolItemRecorder<E,I>
Methods of this interface have to be thread safe.
| Method Summary | |
|---|---|
E |
fetch(I identifier)
The identifier has to still be valid after the fetch, so if fetch is aborted we can call again the method in future. |
I |
record(E poolItem,
I latestIdentifier)
This method must not modify poolItem while recording, so if the record is aborted the poolItem can be returned without an useless fetch. |
void |
remove(I identifier)
The identifier will not be use in future because the item has been removed from pool or the pool is finalized for example. |
| Method Detail |
|---|
I record(E poolItem,
I latestIdentifier)
poolItem - a pool item to recordlatestIdentifier - the latest identifier fetch (below) method returns
E fetch(I identifier)
identifier - this information contains information to fetch the item
void remove(I identifier)
identifier - an identifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||