- All Implemented Interfaces:
PcapProConfigurator.PreRxProcessor,PcapProConfigurator.RxProcessor
public final class PacketDelay
extends PcapProConfigurator<PacketDelay>
implements PcapProConfigurator.PreRxProcessor
The Class PacketDelay.
- Author:
- Sly Technologies Inc, repos@slytechs.com
-
Nested Class Summary
Nested classes/interfaces inherited from class com.slytechs.jnet.jnetpcap.PcapProConfigurator
PcapProConfigurator.PostRxProcessor, PcapProConfigurator.PostRxProcessorFactory<T extends PcapProConfigurator.PostRxProcessor>, PcapProConfigurator.PreRxProcessor, PcapProConfigurator.PreRxProcessorFactory<T extends PcapProConfigurator.PreRxProcessor>, PcapProConfigurator.RxProcessor, PcapProConfigurator.TxProcessor -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the delay.longGets the delay nano.Sets the delay.Methods inherited from class com.slytechs.jnet.jnetpcap.PcapProConfigurator
enable, enableIf, getPcapContext, isEnabled
-
Field Details
-
PROPERTY_PACKET_REPEATER_ENABLE
The Constant PROPERTY_PACKET_REPEATER_ENABLE.- See Also:
-
PROPERTY_PACKET_REPEATER_DELAY_NANO
The Constant PROPERTY_PACKET_REPEATER_DELAY_NANO.- See Also:
-
-
Constructor Details
-
PacketDelay
public PacketDelay()Instantiates a new packet delay.
-
-
Method Details
-
setDelay
Sets the delay.- Parameters:
duration- the durationunit- the unit- Returns:
- the packet delay
-
getDelay
Gets the delay.- Parameters:
unit- the unit- Returns:
- the delay
-
getDelayNano
public long getDelayNano()Gets the delay nano.- Returns:
- the delay nano
-