Class ProducerOptions.Builder
java.lang.Object
dev.restate.integration.ProducerOptions.Builder
- Enclosing class:
ProducerOptions
Builder for
ProducerOptions.-
Method Summary
Modifier and TypeMethodDescriptionbufferMemory(long bytes) Sets the maximum combined serialized size of accepted invocations retained while they wait to be handed to the transport.build()defaultMetadata(InvocationMetadata metadata) Sets invocation fields applied to every record unless overridden by that invocation.maxBlockTime(Duration duration) Sets how longsendwaits for admission.
-
Method Details
-
bufferMemory
Sets the maximum combined serialized size of accepted invocations retained while they wait to be handed to the transport. Set this to zero to disable local buffering.- Parameters:
bytes- a non-negative byte count
-
maxBlockTime
Sets how longsendwaits for admission.Duration.ZEROmakessendfail immediately under backpressure. -
defaultMetadata
Sets invocation fields applied to every record unless overridden by that invocation. The metadata is snapshotted whenbuild()is called. -
build
-