|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.palcomthreads.PalcomThread
public abstract class PalcomThread
| Constructor Summary | |
|---|---|
PalcomThread()
|
|
| Method Summary | |
|---|---|
boolean |
askEvent()
|
void |
disableIOEvents()
Cancel previous call to enableIOEvent. |
void |
disablePeriodicEvents()
Stop delivering PeriodicEvents. |
void |
enableIOEvent(Channel channel,
int timeout)
Order an IOAvailableEvent to be delivered when input is available on the Channel channel, or deliver an IOTimeoutEvent after timeout milliseconds if no input came. |
void |
enablePeriodicEvents(long period)
Order a PeriodicEvent for delivery every period milliseconds. |
PalcomScheduler |
getScheduler()
|
void |
putEvent(Event event)
Deposit an event for this PalcomThread. |
void |
run()
This method is overridden by subclasses. |
void |
terminate()
Permanently remove this PalcomThread from scheduling. |
Event |
waitEvent()
|
void |
yield()
Give other PalcomThreads with the same or higher priority a chance to execute (if any). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PalcomThread()
| Method Detail |
|---|
public void run()
public PalcomScheduler getScheduler()
public void terminate()
public void yield()
public Event waitEvent()
public boolean askEvent()
public void putEvent(Event event)
public void enablePeriodicEvents(long period)
public void disablePeriodicEvents()
public void enableIOEvent(Channel channel,
int timeout)
public void disableIOEvents()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||