org.objectweb.dream.pump
Class SynchronizedPeriodicPumpImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.pump.SynchronizedPumpImpl
org.objectweb.dream.pump.SynchronizedPeriodicPumpImpl
- All Implemented Interfaces:
- AttributeController, BindingController, LifeCycleController, Loggable, PeriodicPumpAttributeController, PumpAttributeController
- public class SynchronizedPeriodicPumpImpl
- extends SynchronizedPumpImpl
- implements PeriodicPumpAttributeController
Extention of the basic pump that use a period T
(in ms). More
precisely, every T ms, a message is pulled on the input and is then pushed on
the output. If these two actions (pull then push) are longer than T ms, an
other message is pulled immediately.
Method Summary |
long |
getPeriod()
Returns the pump period. |
void |
setPeriod(long period)
Sets the pump period. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PERIOD_INIT_PARAM_NAME
public static final String PERIOD_INIT_PARAM_NAME
- The initialization parameter that can be passed to this component to
specify the pump's period.
- See Also:
- Constant Field Values
period
protected long period
SynchronizedPeriodicPumpImpl
public SynchronizedPeriodicPumpImpl()
- Default constructor
getPeriod
public long getPeriod()
- Description copied from interface:
PeriodicPumpAttributeController
- Returns the pump period.
- Specified by:
getPeriod
in interface PeriodicPumpAttributeController
- Returns:
- the pump period.
- See Also:
PeriodicPumpAttributeController.getPeriod()
setPeriod
public void setPeriod(long period)
- Description copied from interface:
PeriodicPumpAttributeController
- Sets the pump period.
- Specified by:
setPeriod
in interface PeriodicPumpAttributeController
- Parameters:
period
- the pump period.- See Also:
PeriodicPumpAttributeController.setPeriod(long)
Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.