|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.m2mp.PacketPool
public class PacketPool
Class PacketPool provides a pool of M2MP Packets.
Note: Class PacketPool is multiple thread safe.
| Constructor Summary | |
|---|---|
PacketPool()
Construct a new packet pool. |
|
| Method Summary | |
|---|---|
Packet |
allocate()
Allocate a packet from this packet pool. |
void |
deallocate(Packet thePacket)
Deallocate a packet into this packet pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PacketPool()
| Method Detail |
|---|
public Packet allocate()
public void deallocate(Packet thePacket)
thePacket - Packet.
NullPointerException - (unchecked exception) Thrown if thePacket is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||