Class LoggingSamplers
java.lang.Object
io.confluent.kafka.schemaregistry.validator.core.LoggingSamplers
Factories for the log samplers used to rate-limit per-record validation logging.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.kafka.common.utils.TimeBasedSamplerall()A sampler that logs every event.static org.apache.kafka.common.utils.TimeBasedSamplerperMinute(long samplesPerMin) A negativesamplesPerMinsuppresses logging entirely, zero logs everything, and a positive value caps logging at roughly that many samples per minute.
-
Method Details
-
all
public static org.apache.kafka.common.utils.TimeBasedSampler all()A sampler that logs every event. Stateless, so a single shared instance is safe. -
perMinute
public static org.apache.kafka.common.utils.TimeBasedSampler perMinute(long samplesPerMin) A negativesamplesPerMinsuppresses logging entirely, zero logs everything, and a positive value caps logging at roughly that many samples per minute.
-