public class StaticDelayGenerator extends java.lang.Object implements FeedbackDelayGenerator
Constructor and Description |
---|
StaticDelayGenerator(long delayInNs,
boolean immediateFeedback)
Create a delayInNs generator that uses the specified delayInNs.
|
Modifier and Type | Method and Description |
---|---|
long |
generateDelay()
Generate a new delay value
|
boolean |
shouldFeedbackImmediately()
Should feedback be immediately sent?
|
public StaticDelayGenerator(long delayInNs, boolean immediateFeedback)
delayInNs
- to returnimmediateFeedback
- or notpublic long generateDelay()
generateDelay
in interface FeedbackDelayGenerator
public boolean shouldFeedbackImmediately()
shouldFeedbackImmediately
in interface FeedbackDelayGenerator
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.