public class EventSpamFilter extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TOKEN_BUCKET_CAPACITY |
static Duration |
DEFAULT_TOKEN_BUCKET_REFILLING_PERIOD |
static int |
DEFAULT_TOKEN_BUCKET_REFILLING_TOKEN |
Constructor and Description |
---|
EventSpamFilter(int maxLRUCacheEntries,
Function<io.kubernetes.client.openapi.models.CoreV1Event,String> spamKeyFunc) |
EventSpamFilter(int maxLRUCacheEntries,
Function<io.kubernetes.client.openapi.models.CoreV1Event,String> spamKeyFunc,
long tokenBucketCapacity,
Duration refillingPeriod,
long refillingTokensPerPeriod) |
Modifier and Type | Method and Description |
---|---|
boolean |
filter(io.kubernetes.client.openapi.models.CoreV1Event event) |
public static final Duration DEFAULT_TOKEN_BUCKET_REFILLING_PERIOD
public static final int DEFAULT_TOKEN_BUCKET_REFILLING_TOKEN
public static final int DEFAULT_TOKEN_BUCKET_CAPACITY
Copyright © 2023. All rights reserved.