Class DiagnosticQueueConfig
java.lang.Object
io.higson.runtime.diagnostic.queue.DiagnosticQueueConfig
Configuration for
DiagnosticQueue.
Fluent builder-style setters allow chaining, e.g.:
new DiagnosticQueueConfig()
.capacity(5000)
.overflowStrategy(OverflowStrategy.DROP_NEWEST)
.batchSize(50);
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intWith metrics collected every 20s and the default 5-minute flush interval the queue accumulates ~15 events between flushes. 10000 leaves ample headroom for transient flush failures (~3.3 days of metrics) beforeOverflowStrategy.DROP_OLDESTstarts dropping.static final OverflowStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchSize(int batchSize) capacity(int capacity) intintoverflowStrategy(OverflowStrategy overflowStrategy) toString()
-
Field Details
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITYWith metrics collected every 20s and the default 5-minute flush interval the queue accumulates ~15 events between flushes. 10000 leaves ample headroom for transient flush failures (~3.3 days of metrics) beforeOverflowStrategy.DROP_OLDESTstarts dropping.- See Also:
-
DEFAULT_OVERFLOW_STRATEGY
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE- See Also:
-
-
Constructor Details
-
DiagnosticQueueConfig
public DiagnosticQueueConfig()
-
-
Method Details