public class WaitForEvent extends Object
WARNING: if you want to stop using this object (throw away the pointer) call DESTROY(), you will usually use try{}finally{} for this.
| Modifier and Type | Class and Description |
|---|---|
static interface |
WaitForEvent.IEventFilter<T>
Note that only events that implements
IComponentEvent may be really substitued as T. |
| Constructor and Description |
|---|
WaitForEvent(IComponentBus bus,
WaitForEvent.IEventFilter accept) |
public WaitForEvent(IComponentBus bus, WaitForEvent.IEventFilter accept)
public boolean await()
throws cz.cuni.amis.utils.exception.PogamutInterruptedException
cz.cuni.amis.utils.exception.PogamutInterruptedExceptionpublic boolean await(long timeoutMillis)
throws cz.cuni.amis.utils.exception.PogamutInterruptedException
WARNING: If the event is not received and you do not plan to use the object further - call destroy()!
timeoutMillis - InterruptedExceptioncz.cuni.amis.utils.exception.PogamutInterruptedExceptionpublic void destroy()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.