Package com.arpnetworking.tsdcore.model
Class RequestEntry.Builder
java.lang.Object
com.arpnetworking.commons.builder.OvalBuilder<RequestEntry>
com.arpnetworking.tsdcore.model.RequestEntry.Builder
- All Implemented Interfaces:
com.arpnetworking.commons.builder.Builder<RequestEntry>
- Enclosing class:
- RequestEntry
public static final class RequestEntry.Builder
extends com.arpnetworking.commons.builder.OvalBuilder<RequestEntry>
Builder
implementation for
RequestEntry
.
TODO(ville): Convert RequestEntry.Builder would be a ThreadLocalBuilder
See comments in HttpPostSink:createRequests-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetEnterTime
(Instant value) Set the time when the request enter the pending request queue.setPopulationSize
(long value) Set the population size of the request.setRequest
(org.asynchttpclient.Request value) Set the request.Methods inherited from class com.arpnetworking.commons.builder.OvalBuilder
build, clone, clone, construct, isSelfValidating, toString, validate
-
Constructor Details
-
Builder
public Builder()Public constructor.
-
-
Method Details
-
setRequest
Set the request. Required. Cannot be null.- Parameters:
value
- The request.- Returns:
- This
RequestEntry.Builder
instance.
-
setEnterTime
Set the time when the request enter the pending request queue. Required. Cannot be null.- Parameters:
value
- The enter time.- Returns:
- This
RequestEntry.Builder
instance.
-
setPopulationSize
Set the population size of the request. Required. Cannot be null.- Parameters:
value
- The population size.- Returns:
- This
RequestEntry.Builder
instance.
-