public class Mailbox.BlockingSubscriber extends java.lang.Object implements EventSubscriber
| Modifier and Type | Field and Description |
|---|---|
boolean |
eventRcvd |
| Constructor and Description |
|---|
BlockingSubscriber(long tom) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
blockingWait()
wait for either a timeout or event, returning true if the timeout occurred
|
void |
onEvent(EventPublisher ep,
Event e) |
public void onEvent(EventPublisher ep, Event e)
onEvent in interface EventSubscriberpublic boolean blockingWait()