|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--com.dalsemi.tininet.ppp.Queue
Event queue used by protocol classes to notify PPP of state changes.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
Queue()
Default constructor. |
Method Summary | |
void |
add(java.lang.Object obj)
Add an element to the queue. |
void |
addEventListener(QueueEventListener el)
Add an event listener. |
int |
count()
Get the current queue entry count. |
java.lang.Object |
get()
Get an element from the queue. |
void |
removeEventListener(QueueEventListener el)
Remove the event listener |
void |
run()
Thread run method |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Queue()
Method Detail |
public void add(java.lang.Object obj)
obj
- data to be queuedpublic java.lang.Object get()
public int count()
public void run()
public void addEventListener(QueueEventListener el) throws java.util.TooManyListenersException
el
- queue event listenerpublic void removeEventListener(QueueEventListener el)
el
- queue event listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |