public class Quota
extends java.lang.Object
| Constructor and Description |
|---|
Quota()
Creates a new Quota instance.
|
Quota(long bytes,
long resetPeriod)
Creates a new Quota instance.
|
Quota(Quota that)
Creates a new Quota instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBytes()
Gets number of bytes that may be transferred during period.
|
long |
getResetPeriod()
Gets reset period in milliseconds.
|
void |
setBytes(long value)
Sets number of bytes that may be transferred during period.
|
void |
setResetPeriod(long value)
Sets reset period in milliseconds.
|
java.lang.String |
toString() |
public Quota(long bytes,
long resetPeriod)
bytes - the number of bytes that may be transferred during periodresetPeriod - the reset period in millisecondspublic Quota(Quota that)
that - instance to copy frompublic Quota()
public long getBytes()
public void setBytes(long value)
value - number of bytespublic long getResetPeriod()
public void setResetPeriod(long value)
value - reset period in millisecondspublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2023. Redwood Software Inc. All rights reserved.