public final class FixedDelay extends java.lang.Object implements CSProcess
Regulate
.
Input Channels | ||
---|---|---|
in | java.lang.Object | The in Channel can accept data of any Class. |
Output Channels | ||
out | java.lang.Object | The out Channel sends the the same type of data (in fact, the same data) as is input. |
Modifier and Type | Field and Description |
---|---|
private long |
delayTime
The time the process is to wait in milliseconds between receiving a
message and then sending it.
|
private ChannelInput |
in
The input Channel
|
private ChannelOutput |
out
The output Channel
|
Constructor and Description |
---|
FixedDelay(long delayTime,
ChannelInput in,
ChannelOutput out)
This process copies input to output, imposing a fixed time delay
between these events.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
The main body of this process.
|
private ChannelInput in
private ChannelOutput out
private long delayTime
public FixedDelay(long delayTime, ChannelInput in, ChannelOutput out)
delayTime
- the time the process is to wait in milliseconds
between receiving a message and then sending it –
a zero or negative value implies no waiting.in
- the input Channelout
- the output Channel