public class CapturedPacketsQueue
extends java.lang.Object
CapturedPacketsQueue implements queue of packets captured from the network interface.
These packets are stored by Capturer and then processed by FlowGenerator.| Modifier and Type | Field and Description |
|---|---|
private java.util.Queue<CapturedPacket> |
listOfPackets
Queue of captured packets.
|
| Constructor and Description |
|---|
CapturedPacketsQueue() |
| Modifier and Type | Method and Description |
|---|---|
CapturedPacket |
getNextPacket()
Gets next packet from the queue.
|
protected boolean |
queueUpPacket(CapturedPacket packet)
Adds packet to the queue.
|
private java.util.Queue<CapturedPacket> listOfPackets
protected boolean queueUpPacket(CapturedPacket packet)
packet - packet to be added to the queuetrue if the packet was added, false otherwisepublic CapturedPacket getNextPacket()