ist.palcom.palcomthreads
Class Mailbox

java.lang.Object
  extended by ist.palcom.palcomthreads.Mailbox

public class Mailbox
extends java.lang.Object


Constructor Summary
Mailbox()
           
 
Method Summary
 boolean askEvent()
           
 PalcomScheduler getScheduler()
           
 void putEvent(Event event)
          Deposit an event for this Mailbox.
 void setScheduler(PalcomScheduler scheduler)
          Public for test purposes
 Event waitEvent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mailbox

public Mailbox()
Method Detail

waitEvent

public Event waitEvent()
Returns:
The next event in this mailbox, or block until one arrives.

askEvent

public boolean askEvent()
Returns:
true if there are pending event(s), else return false.

putEvent

public void putEvent(Event event)
Deposit an event for this Mailbox.


getScheduler

public PalcomScheduler getScheduler()
Returns:
The PalcomScheduler of this Mailbox (if any).

setScheduler

public void setScheduler(PalcomScheduler scheduler)
Public for test purposes