public final class SampleBucketState extends Object
ControlSystemSupport
for the
state associated with a specific sample bucket using the
ControlSystemSupport.getSampleBucketState(SampleBucketId)
method.Constructor and Description |
---|
SampleBucketState(int currentBucketSize,
long latestSampleTimeStamp)
Creates an object representing the specified sample-bucket state.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getCurrentBucketSize()
Returns the current size of the sample bucket (in bytes).
|
long |
getLatestSampleTimeStamp()
Returns the time stamp of the newest sample in the bucket.
|
int |
hashCode() |
String |
toString() |
public SampleBucketState(int currentBucketSize, long latestSampleTimeStamp)
currentBucketSize
- current size of the sample bucket (in bytes). This is the size
that was stored when the last sample was written. If no sample
has been written yet, this should be zero.latestSampleTimeStamp
- time stamp of the newest sample in the bucket. If no sample
has been written yet, this should be zero. The time stamp is
specified as the number of nanoseconds since epoch (January
1st, 1970, 00:00:00 UTC).IllegalArgumentException
- if currentBucketSize
or
latestSampleTimeStamp
is negative.public int getCurrentBucketSize()
public long getLatestSampleTimeStamp()
Copyright © 2011–2019 aquenos GmbH. All rights reserved.