@NotThreadSafe public class FlowStat extends Object
| Constructor and Description |
|---|
FlowStat()
Default interval of one minute to calculate rate
|
FlowStat(long interval)
Constructor given the interval to calculate rate for
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCreated()
Get time of creation
|
Long |
getLastReceived()
Get the last received time
|
double |
getRate()
Get rate as receives/seconds
|
void |
received()
Indicate a reception
|
String |
toString() |
public FlowStat()
public FlowStat(long interval)
interval - in millisecondspublic Long getLastReceived()
public long getCreated()
public double getRate()
public void received()
Copyright © 2011–2019 Danish Maritime Authority. All rights reserved.