public class QuotaEvent
extends java.lang.Object
Suggested usage: try (QuotaEventCloseable qec = new QuotaEvent.Builder().withOperation(op).withFullResourceName(name).create()) { LOG.info(...); }
MDC data is thread-local. After calling QuotaEventClosable.close, any overwritten quota_event.* keys will not be restored.
| Modifier and Type | Class and Description |
|---|---|
static class |
QuotaEvent.Builder |
static class |
QuotaEvent.QuotaEventCloseable |
| Constructor and Description |
|---|
QuotaEvent() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setEnabled(boolean enabled)
Set whether this feature is enabled.
|