public class MaxTransfersServiceDescriptor extends ServiceDescriptor
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_PERIOD |
static long |
DEFAULT_VALUE |
| Constructor and Description |
|---|
MaxTransfersServiceDescriptor()
This constructor is used by serialization sub-system
and is not intended to use directly in client code.
|
MaxTransfersServiceDescriptor(long value,
long resetPeriod)
Creates a new descriptor instance.
|
MaxTransfersServiceDescriptor(long value,
long resetPeriod,
long transferredBytes,
long nextResetTime)
Creates a new service descriptor.
|
MaxTransfersServiceDescriptor(MaxTransfersServiceDescriptor that) |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
copy() |
long |
getNextResetTime()
Retuns next reset time.
|
long |
getResetPeriod()
Returns counter reset period.
|
long |
getTransferredBytes()
Returns transferred bytes count.
|
long |
getValue()
Returns max transfers.
|
void |
setNextResetTime(long value)
Sets next reset time.
|
void |
setResetPeriod(long value)
Sets counter reset period.
|
void |
setTransferredBytes(long value)
Sets transferred bytes count.
|
void |
setValue(long value)
Sets max transfers.
|
java.lang.String |
toString() |
Quota |
transferQuota() |
getVersion, setVersionpublic static final long DEFAULT_VALUE
public static final long DEFAULT_PERIOD
public MaxTransfersServiceDescriptor(long value,
long resetPeriod,
long transferredBytes,
long nextResetTime)
value - max transfers in bytesresetPeriod - reset period in mstransferredBytes - transferred bytes countnextResetTime - next reset timepublic MaxTransfersServiceDescriptor(MaxTransfersServiceDescriptor that)
public MaxTransfersServiceDescriptor(long value,
long resetPeriod)
value - max transfers in bytesresetPeriod - reset period in mspublic MaxTransfersServiceDescriptor()
public long getValue()
public void setValue(long value)
value - max transfers bytespublic long getResetPeriod()
public void setResetPeriod(long value)
value - counter reset period in mspublic long getTransferredBytes()
public void setTransferredBytes(long value)
value - transferred bytes countpublic long getNextResetTime()
public void setNextResetTime(long value)
value - next reset timepublic Configuration copy()
copy in class Configurationpublic Quota transferQuota()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2009-2023. Redwood Software Inc. All rights reserved.