public class DefaultLimitService extends LimitService
Modifier and Type | Field and Description |
---|---|
static Feature |
RUN_GC |
conn
Constructor and Description |
---|
DefaultLimitService(AppContext conn) |
Modifier and Type | Method and Description |
---|---|
void |
checkLimit()
Estimate the resources used by this request and throw a
LimitException
if these exceed a reasonable value for an interactive page. |
cleanup, getType
getContext, getLogger, resetLogger
public static final Feature RUN_GC
public DefaultLimitService(AppContext conn)
conn
- public void checkLimit() throws LimitException
LimitService
LimitException
if these exceed a reasonable value for an interactive page.
In practice this will be the time since the start of the request and the increase of global memory consumption
since the start of the requestcheckLimit
in class LimitService
LimitException