|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.message.PacketObjectPool
An ObjectPool of Packet Objects
Packet| Constructor Summary | |
PacketObjectPool(MessageServiceProvider msp)
Create a new PacketObjectPool |
|
| Method Summary | |
void |
close()
Close the PacketObjectPool This method closes the ObjectPool and cleans up any dangling references. |
Packet |
getPacket()
Get a Packet Object from the ObjectPool |
void |
initialize(Properties properties)
Initialize the PacketObjectPool |
void |
releasePacket(Packet packet)
Release the Packet Object back to the ObjectPool |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PacketObjectPool(MessageServiceProvider msp)
msp - the MessageServiceProvider| Method Detail |
public void initialize(Properties properties)
throws LifecycleException
properties - the initialization Properties object
LifecycleException - thrown if an error occurs initializing the
PacketObjectPool
public Packet getPacket()
throws PacketException
PacketException - thrown if an error occurs getting a Packet Object
from the ObjectPool. Typically this will be some sort
of Object creation error that occurs.public void releasePacket(Packet packet)
packet - the Packet Object to release back to the ObjectPool
IllegalArgumentException - thrown if the Packet parameter is null.
Note: UNCHECKED EXCEPTIONpublic void close()
This method closes the ObjectPool and cleans up any dangling references.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||