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, getTypegetContext, getLogger, resetLoggerpublic static final Feature RUN_GC
public DefaultLimitService(AppContext conn)
conn - public void checkLimit()
throws LimitException
LimitServiceLimitException
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 LimitServiceLimitException