|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jcifs.util.PacketEventQueue
This class is a container for PacketEvents and is obtained from
MultiDatagramSocket.
MultiDatagramSocket,
PacketEvent| Method Summary | |
void |
clear()
Clear all PacketEvents in the PacketEventQueue |
PacketEvent |
getNextPacketEvent()
Retreive or wait for the next PacketEvent. |
PacketEvent |
getNextPacketEvent(long timeout)
Retreive or wait for the next PacketEvent for at most
timeout milliseconds. |
int |
getSize()
Return the number of packets in the queue |
boolean |
isEmpty()
Determine if the queue is empty. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public PacketEvent getNextPacketEvent()
throws InterruptedException
PacketEvent. This will block
if there are no packets in the queue.MultiDatagramSocket is closed or MultiDatagramSocket.interruptPacketEventQueues() is called
public PacketEvent getNextPacketEvent(long timeout)
throws InterruptedException
PacketEvent for at most
timeout milliseconds.timeout - the amount of time to wait blockedtimeout period is reachedpublic boolean isEmpty()
public int getSize()
public void clear()
PacketEvents in the PacketEventQueue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||