Class BetaSelfHostedWorkQueueStats.Builder
-
- All Implemented Interfaces:
public final class BetaSelfHostedWorkQueueStats.BuilderA builder for BetaSelfHostedWorkQueueStats.
-
-
Method Summary
-
-
Method Detail
-
depth
final BetaSelfHostedWorkQueueStats.Builder depth(Long depth)
Number of work items waiting to be picked up (lag from consumer group)
-
depth
final BetaSelfHostedWorkQueueStats.Builder depth(JsonField<Long> depth)
Sets Builder.depth to an arbitrary JSON value.
You should usually call Builder.depth with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
oldestQueuedAt
final BetaSelfHostedWorkQueueStats.Builder oldestQueuedAt(String oldestQueuedAt)
RFC 3339 timestamp of oldest item in the work stream (includes both queued and pending items), null if stream empty
-
oldestQueuedAt
final BetaSelfHostedWorkQueueStats.Builder oldestQueuedAt(Optional<String> oldestQueuedAt)
Alias for calling Builder.oldestQueuedAt with
oldestQueuedAt.orElse(null).
-
oldestQueuedAt
final BetaSelfHostedWorkQueueStats.Builder oldestQueuedAt(JsonField<String> oldestQueuedAt)
Sets Builder.oldestQueuedAt to an arbitrary JSON value.
You should usually call Builder.oldestQueuedAt with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pending
final BetaSelfHostedWorkQueueStats.Builder pending(Long pending)
Number of work items being processed (polled but not acknowledged)
-
pending
final BetaSelfHostedWorkQueueStats.Builder pending(JsonField<Long> pending)
Sets Builder.pending to an arbitrary JSON value.
You should usually call Builder.pending with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaSelfHostedWorkQueueStats.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("work_queue_stats")This method is primarily for setting the field to an undocumented or not yet supported value.
-
workersPolling
final BetaSelfHostedWorkQueueStats.Builder workersPolling(Long workersPolling)
Number of workers that have polled for work in the last 30 seconds. Requires worker_id to be sent with poll requests.
-
workersPolling
final BetaSelfHostedWorkQueueStats.Builder workersPolling(Long workersPolling)
Alias for Builder.workersPolling.
This unboxed primitive overload exists for backwards compatibility.
-
workersPolling
final BetaSelfHostedWorkQueueStats.Builder workersPolling(Optional<Long> workersPolling)
Alias for calling Builder.workersPolling with
workersPolling.orElse(null).
-
workersPolling
final BetaSelfHostedWorkQueueStats.Builder workersPolling(JsonField<Long> workersPolling)
Sets Builder.workersPolling to an arbitrary JSON value.
You should usually call Builder.workersPolling with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaSelfHostedWorkQueueStats.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaSelfHostedWorkQueueStats.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaSelfHostedWorkQueueStats.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaSelfHostedWorkQueueStats.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaSelfHostedWorkQueueStats.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaSelfHostedWorkQueueStats build()
Returns an immutable instance of BetaSelfHostedWorkQueueStats.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.depth() .oldestQueuedAt() .pending() .workersPolling()
-
-
-
-