public static class BulkWrite.Config.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BulkWrite.Config.Builder |
allocatorInitReservation(long allocatorInitReservation)
Set the initial space reservation for the allocator.
|
BulkWrite.Config.Builder |
allocatorMaxAllocation(long allocatorMaxAllocation)
Set the maximum amount of space the new child allocator can allocate.
|
BulkWrite.Config |
build() |
BulkWrite.Config.Builder |
maxRequestsInFlight(int maxRequestsInFlight)
Set the max in-flight requests in the stream.
|
BulkWrite.Config.Builder |
timeoutMsPerMessage(long timeoutMsPerMessage)
Set the timeout in milliseconds for each message.
|
public BulkWrite.Config.Builder allocatorInitReservation(long allocatorInitReservation)
allocatorInitReservation
- the initial space reservationpublic BulkWrite.Config.Builder allocatorMaxAllocation(long allocatorMaxAllocation)
allocatorMaxAllocation
- the maximum amount of spacepublic BulkWrite.Config.Builder timeoutMsPerMessage(long timeoutMsPerMessage)
timeoutMsPerMessage
- the timeout in millisecondspublic BulkWrite.Config.Builder maxRequestsInFlight(int maxRequestsInFlight)
maxRequestsInFlight
- the max in-flight requestspublic BulkWrite.Config build()
Copyright © 2025. All rights reserved.