|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.psepr.jClient.EventQueue
public class EventQueue
| Constructor Summary | |
|---|---|
EventQueue()
|
|
EventQueue(int maxx)
|
|
| Method Summary | |
|---|---|
int |
getEventCount()
|
int |
getMaxEvents()
|
PsEPREvent |
nextEvent()
Returns the next available packet. |
PsEPREvent |
nextEvent(long timeout)
Returns the next available event. |
PsEPREvent |
pollEvent()
Polls to see if a event is currently available and returns it, or immediately returns null if no packets are currently in the
result queue. |
boolean |
receiveEvent(PsEPREvent pEvent)
Handle the received event. |
void |
setMaxEvents(int xx)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventQueue()
public EventQueue(int maxx)
| Method Detail |
|---|
public int getMaxEvents()
public void setMaxEvents(int xx)
public int getEventCount()
public PsEPREvent pollEvent()
null if no packets are currently in the
result queue.
null if there are no more
results.public PsEPREvent nextEvent()
public PsEPREvent nextEvent(long timeout)
timeout has elapased. If the
timeout elapses without a result, null will be returned.
timeout - the amount of time to wait for the next event (in milleseconds).
public boolean receiveEvent(PsEPREvent pEvent)
EventReceiver
receiveEvent in interface EventReceiver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||