public class TapLimit extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BYTES
Unit string used for a data limit of bytes ("byte").
|
static String |
ROWS
Unit string used for a data limit of rows ("row").
|
static String |
SECONDS
Unit string used always for time limits ("seconds").
|
Constructor and Description |
---|
TapLimit(long value,
boolean isHard,
String unit)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getUnit()
Returns the limit unit.
|
long |
getValue()
Returns the limit value.
|
boolean |
isHard()
Indicates whether this is a hard or soft (default) limit.
|
String |
toString() |
public static final String SECONDS
public static final String ROWS
public static final String BYTES
public TapLimit(long value, boolean isHard, String unit)
value
- limit valueisHard
- true for a hard limit, false for a default limitunit
- unit for valuepublic long getValue()
public boolean isHard()
public String getUnit()
SECONDS
for time limits, and either
ROWS
or BYTES
for data limits.Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.