com.jpeterson.x10
Class GatewayQueue
java.lang.Object
|
+--com.jpeterson.x10.GatewayQueue
- Direct Known Subclasses:
- AWTGatewayQueue, NullGatewayQueue
- public abstract class GatewayQueue
- extends java.lang.Object
Base abstract queue management class for X10 ControlEvents.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
dispatcher
protected ControlEventDispatcher dispatcher
- Dispatcher to process the queue messages.
GatewayQueue
public GatewayQueue(ControlEventDispatcher dispatcher)
- Create a new gateway queue for processing control messages.
- Parameters:
dispatcher
- ControlEventDispatcher that will dispatch the
control event.
setDispatcher
public void setDispatcher(ControlEventDispatcher dispatcher)
- Assign a dispatcher.
- Parameters:
dispatcher
- ControlEventDispatcher that will dispatch the
control event.
getDispatcher
public ControlEventDispatcher getDispatcher()
- Retrieve the assigned ControlEventDispatcher.
- Returns:
- ControlEventDispatcher that will dispatch the
control event.
post
public abstract void post(ControlEvent event)
- Put an event on the queue. The assigned dispatcher will process the
event.
- Parameters:
event
- ControlEvent to be placed on the queue for subsequent
processing.