Class McpSimulationOptions.Builder
java.lang.Object
com.soklet.McpSimulationOptions.Builder
- Enclosing class:
McpSimulationOptions
Mutable builder for
McpSimulationOptions; not thread-safe.- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates positive bounds and creates an immutable options value.maximumCapturedSizeInBytes(@Nullable Integer maximumCapturedSizeInBytes) Sets the cumulative captured-byte bound.streamItemQueueCapacity(@Nullable Integer streamItemQueueCapacity) Sets the maximum pending SSE-item count.
-
Method Details
-
streamItemQueueCapacity
public @NonNull McpSimulationOptions.Builder streamItemQueueCapacity(@Nullable Integer streamItemQueueCapacity) Sets the maximum pending SSE-item count. The default is128.- Parameters:
streamItemQueueCapacity- positive queue capacity, ornullto restore the default- Returns:
- this builder
-
maximumCapturedSizeInBytes
public @NonNull McpSimulationOptions.Builder maximumCapturedSizeInBytes(@Nullable Integer maximumCapturedSizeInBytes) Sets the cumulative captured-byte bound. Consuming items never refunds this budget. The default is 10,485,760 bytes.- Parameters:
maximumCapturedSizeInBytes- positive byte limit, ornullto restore the default- Returns:
- this builder
-
build
Validates positive bounds and creates an immutable options value.- Returns:
- immutable options
- Throws:
IllegalArgumentException- if either configured bound is not positive
-