| Constructor and Description |
|---|
DefaultLoad()
Creates an invalid load.
|
DefaultLoad(long current,
long previous)
Creates a load value from the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid()
Indicates whether this load was built on valid values.
|
long |
latest()
Obtain the latest bytes counter viewed on that link.
|
long |
rate()
Obtain the current observed rate (in bytes/s) on a link.
|
long |
time()
Returns when this value was seen.
|
String |
toString() |
public DefaultLoad()
public DefaultLoad(long current,
long previous)
current - the current valueprevious - the previous valuepublic long rate()
Loadpublic long latest()
Loadpublic boolean isValid()
Loadpublic long time()
LoadCopyright © 2015. All rights reserved.