public class LimitInfo extends Object
Constructor and Description |
---|
LimitInfo(LimitInfoType limitInfoType, long totalVolume, long remainingVolume)
Only for internal usage.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
LimitInfoType |
getLimitType()
Returns limit info type.
|
long |
getRemainingVolume()
Returns remaining limit for VOLUME type, 0 for FORBIDDEN type, -1 for UNLIMITED type.
|
long |
getTotalVolume()
Returns total limit for VOLUME type, 0 for FORBIDDEN type, -1 for UNLIMITED type.
|
int |
hashCode() |
public LimitInfo(LimitInfoType limitInfoType, long totalVolume, long remainingVolume)
limitInfoType
- type of event limit info
totalVolume
- total limit volume
remainingVolume
- remaining limit volume
public LimitInfoType getLimitType()
public long getTotalVolume()
public long getRemainingVolume()
Copyright © 2023. All rights reserved.